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:
Richard Yao
2023-01-10 16:58:21 -05:00
committed by Brian Behlendorf
parent 64195fc89f
commit 4ef69de384
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -4783,7 +4783,7 @@ arc_flush(spa_t *spa, boolean_t retry)
* no good way to determine if all of a spa's buffers have been
* evicted from an arc state.
*/
ASSERT(!retry || spa == 0);
ASSERT(!retry || spa == NULL);
if (spa != NULL)
guid = spa_load_guid(spa);