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 <allan@klarasystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com>
Reviewed-by: Fedor Uporov <fuporov.vstack@gmail.com>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Sponsored-by: Klara, Inc.
Sponsored-by: Railway Corporation
Closes #17596
This commit is contained in:
Rob Norris 2025-08-05 12:32:33 +10:00 committed by Brian Behlendorf
parent 0c376d0f59
commit 3e671f2353

View File

@ -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);
}
/*