]> git.proxmox.com Git - mirror_zfs.git/commit
Cleanup: Use NULL when doing NULL pointer comparisons
authorRichard Yao <richard.yao@alumni.stonybrook.edu>
Tue, 10 Jan 2023 21:58:21 +0000 (16:58 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 13 Jan 2023 00:00:37 +0000 (16:00 -0800)
commit4ef69de384838f9dab49fe2ed0caf453fa2aab1d
treec9e17858db2c3a2e3fac9bbd82bdd6fb9c573aa8
parent64195fc89fa542726c5a45a09f89ed8cc14d033b
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
module/os/freebsd/spl/callb.c
module/zfs/arc.c
module/zfs/blake3_zfs.c
module/zfs/zap.c