Skip to content

Commit 93de8df

Browse files
Lotte-Baimartinkpetersen
authored andcommitted
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>
1 parent 331c6e9 commit 93de8df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/mac53c94.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ static void mac53c94_interrupt(int irq, void *dev_id)
234234
++mac53c94_errors;
235235
writeb(CMD_NOP + CMD_DMA_MODE, &regs->command);
236236
}
237-
if (cmd == 0) {
237+
if (!cmd) {
238238
printk(KERN_DEBUG "53c94: interrupt with no command active?\n");
239239
return;
240240
}

0 commit comments

Comments
 (0)