From 3e671f2353f99cb4b7e15dcbbac363dfad41d5d2 Mon Sep 17 00:00:00 2001 From: Rob Norris Date: Tue, 5 Aug 2025 12:32:33 +1000 Subject: [PATCH] zvol: remove void return casts on void-returning functions Casting unused returns to (void) is already of dubious value, but it's entirely meaningless on functions that are defined as void return. Remove the clutter. Reviewed-by: Allan Jude Reviewed-by: Brian Behlendorf Reviewed-by: Alexander Motin Reviewed-by: Fedor Uporov Signed-off-by: Rob Norris Sponsored-by: Klara, Inc. Sponsored-by: Railway Corporation Closes #17596 --- module/zfs/zvol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/zfs/zvol.c b/module/zfs/zvol.c index 7e264f308..ea61f33b6 100644 --- a/module/zfs/zvol.c +++ b/module/zfs/zvol.c @@ -916,7 +916,7 @@ zvol_log_write(zvol_state_t *zv, dmu_tx_t *tx, uint64_t offset, itx->itx_private = zv; - (void) zil_itx_assign(zilog, itx, tx); + zil_itx_assign(zilog, itx, tx); offset += len; size -= len; @@ -1121,7 +1121,7 @@ zvol_shutdown_zv(zvol_state_t *zv) */ if (zv->zv_flags & ZVOL_WRITTEN_TO) txg_wait_synced(dmu_objset_pool(zv->zv_objset), 0); - (void) dmu_objset_evict_dbufs(zv->zv_objset); + dmu_objset_evict_dbufs(zv->zv_objset); } /*