freebsd: libzfs: zmount: void-cast unused assert(3) variables

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Rich Ercolani <rincebrain@gmail.com>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13145
Closes #13152
This commit is contained in:
наб 2022-02-25 17:50:12 +00:00 committed by Brian Behlendorf
parent 1ea68b6d38
commit b08153f1c1
1 changed files with 3 additions and 3 deletions

View File

@ -85,10 +85,10 @@ do_mount_(const char *spec, const char *dir, int mflag, char *fstype,
assert(dir != NULL);
assert(fstype != NULL);
assert(strcmp(fstype, MNTTYPE_ZFS) == 0);
assert(dataptr == NULL);
assert(datalen == 0);
assert(dataptr == NULL), (void) dataptr;
assert(datalen == 0), (void) datalen;
assert(optptr != NULL);
assert(optlen > 0);
assert(optlen > 0), (void) optlen;
tofree = optstr = strdup(optptr);
assert(optstr != NULL);