mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-01-15 09:42:04 +03:00
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:
parent
0c376d0f59
commit
3e671f2353
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user