aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/zfs_byteswap.c
diff options
context:
space:
mode:
authorнаб <[email protected]>2022-02-16 02:38:43 +0100
committerBrian Behlendorf <[email protected]>2022-02-18 09:34:03 -0800
commitef70eff1982228862ef9ad70f21b222cde06eb5e (patch)
treeb75bba64f76ba24a1afe0d1f5b84136e126f0b28 /module/zfs/zfs_byteswap.c
parent51c747de4330b1008593183de66a6b117185638a (diff)
module: mark arguments used
Reviewed-by: Alejandro Colomar <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #13110
Diffstat (limited to 'module/zfs/zfs_byteswap.c')
-rw-r--r--module/zfs/zfs_byteswap.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/module/zfs/zfs_byteswap.c b/module/zfs/zfs_byteswap.c
index cd35849c3..fcedf295c 100644
--- a/module/zfs/zfs_byteswap.c
+++ b/module/zfs/zfs_byteswap.c
@@ -36,9 +36,7 @@ static
void
zfs_oldace_byteswap(ace_t *ace, int ace_cnt)
{
- int i;
-
- for (i = 0; i != ace_cnt; i++, ace++) {
+ for (int i = 0; i != ace_cnt; i++, ace++) {
ace->a_who = BSWAP_32(ace->a_who);
ace->a_access_mask = BSWAP_32(ace->a_access_mask);
ace->a_flags = BSWAP_16(ace->a_flags);
@@ -138,23 +136,16 @@ zfs_ace_byteswap(void *buf, size_t size, boolean_t zfs_layout)
}
}
-/* ARGSUSED */
void
zfs_oldacl_byteswap(void *buf, size_t size)
{
- int cnt;
-
/*
* Arggh, since we don't know how many ACEs are in
* the array, we have to swap the entire block
*/
-
- cnt = size / sizeof (ace_t);
-
- zfs_oldace_byteswap((ace_t *)buf, cnt);
+ zfs_oldace_byteswap((ace_t *)buf, size / sizeof (ace_t));
}
-/* ARGSUSED */
void
zfs_acl_byteswap(void *buf, size_t size)
{