mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 19:28:53 +03:00
Cleanup: Use NULL when doing NULL pointer comparisons
The Linux 5.16.14 kernel's coccicheck caught this. The semantic patch that caught it was: ./scripts/coccinelle/null/badzero.cocci Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Closes #14372
This commit is contained in:
committed by
Brian Behlendorf
parent
64195fc89f
commit
4ef69de384
+2
-2
@@ -946,9 +946,9 @@ fzap_length(zap_name_t *zn,
|
||||
if (err != 0)
|
||||
goto out;
|
||||
|
||||
if (integer_size != 0)
|
||||
if (integer_size != NULL)
|
||||
*integer_size = zeh.zeh_integer_size;
|
||||
if (num_integers != 0)
|
||||
if (num_integers != NULL)
|
||||
*num_integers = zeh.zeh_num_integers;
|
||||
out:
|
||||
zap_put_leaf(l);
|
||||
|
||||
Reference in New Issue
Block a user