mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-23 08:35:19 -05:00
scsi: mac53c94: Fix warning comparing pointer to 0
Fix the following coccicheck warning: drivers/scsi/mac53c94.c:237:12-13: WARNING comparing pointer to 0 Link: https://lore.kernel.org/r/1647244711-31575-1-git-send-email-baihaowen@meizu.com Signed-off-by: Haowen Bai <baihaowen@meizu.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
331c6e910f
commit
93de8df205
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@ static void mac53c94_interrupt(int irq, void *dev_id)
|
||||||
++mac53c94_errors;
|
++mac53c94_errors;
|
||||||
writeb(CMD_NOP + CMD_DMA_MODE, ®s->command);
|
writeb(CMD_NOP + CMD_DMA_MODE, ®s->command);
|
||||||
}
|
}
|
||||||
if (cmd == 0) {
|
if (!cmd) {
|
||||||
printk(KERN_DEBUG "53c94: interrupt with no command active?\n");
|
printk(KERN_DEBUG "53c94: interrupt with no command active?\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue