mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +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
@@ -263,7 +263,7 @@ callb_execute_class(int class, int code)
|
||||
mutex_enter(&ct->ct_lock);
|
||||
|
||||
for (cp = ct->ct_first_cb[class];
|
||||
cp != NULL && ret == 0; cp = cp->c_next) {
|
||||
cp != NULL && ret == NULL; cp = cp->c_next) {
|
||||
while (cp->c_flag & CALLB_EXECUTING)
|
||||
cv_wait(&cp->c_done_cv, &ct->ct_lock);
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user