diff options
author | наб <[email protected]> | 2022-03-19 00:53:05 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-03-18 16:53:05 -0700 |
commit | 045aeabce6e5df9c88412c479ddd073087b2d83d (patch) | |
tree | 626dc1a7ca4ff2a9d330131860af3748522f24c2 /module | |
parent | 4629dfe963ac6f2691689a358ce2669c6421b547 (diff) |
module: zfs: arc: hdr_full_crypt_dest: drop unevaulated-only variable
This explodes as -Wunused-variable on GCC 8.5.0, despite it being used,
just not in an evaluated context
Reviewed-by: Matthew Ahrens <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #13195
Diffstat (limited to 'module')
-rw-r--r-- | module/zfs/arc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 9e32aaaea..bb8606214 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -1204,11 +1204,11 @@ hdr_full_dest(void *vbuf, void *unused) static void hdr_full_crypt_dest(void *vbuf, void *unused) { - (void) unused; - arc_buf_hdr_t *hdr = vbuf; + (void) vbuf, (void) unused; hdr_full_dest(vbuf, unused); - arc_space_return(sizeof (hdr->b_crypt_hdr), ARC_SPACE_HDRS); + arc_space_return(sizeof (((arc_buf_hdr_t *)NULL)->b_crypt_hdr), + ARC_SPACE_HDRS); } static void |