Commit 93de8df2 authored by Haowen Bai's avatar Haowen Bai Committed by Martin K. Petersen

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.comSigned-off-by: default avatarHaowen Bai <baihaowen@meizu.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 331c6e91
......@@ -234,7 +234,7 @@ static void mac53c94_interrupt(int irq, void *dev_id)
++mac53c94_errors;
writeb(CMD_NOP + CMD_DMA_MODE, &regs->command);
}
if (cmd == 0) {
if (!cmd) {
printk(KERN_DEBUG "53c94: interrupt with no command active?\n");
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment