HomeFreeBSD

Cleanup: Use NULL when doing NULL pointer comparisons

Description

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

Details

Provenance
Richard Yao <richard.yao@alumni.stonybrook.edu>Authored on Jan 10 2023, 9:58 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 13 2023, 12:00 AM
Parents
rG64195fc89fa5: Cleanup: Remove unneeded semicolons
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG4ef69de38483: Cleanup: Use NULL when doing NULL pointer comparisons (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Jan 13 2023, 12:00 AM