zfs: iter: fix unused, remove argsused

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #12835
This commit is contained in:
наб 2021-12-11 02:00:02 +01:00 committed by Brian Behlendorf
parent d8f32c0eb7
commit 1fedd01247

View File

@ -267,9 +267,8 @@ zfs_list_only_by_fast(const zprop_list_t *p)
return (B_TRUE); return (B_TRUE);
} }
/* ARGSUSED */
static int static int
zfs_compare(const void *larg, const void *rarg, void *unused) zfs_compare(const void *larg, const void *rarg)
{ {
zfs_handle_t *l = ((zfs_node_t *)larg)->zn_handle; zfs_handle_t *l = ((zfs_node_t *)larg)->zn_handle;
zfs_handle_t *r = ((zfs_node_t *)rarg)->zn_handle; zfs_handle_t *r = ((zfs_node_t *)rarg)->zn_handle;
@ -430,7 +429,7 @@ zfs_sort(const void *larg, const void *rarg, void *data)
} }
} }
return (zfs_compare(larg, rarg, NULL)); return (zfs_compare(larg, rarg));
} }
int int