aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaowen Bai2022-03-14 15:58:31 +0800
committerMartin K. Petersen2022-04-25 23:23:05 -0400
commit93de8df20537697cc2e74ac42b61e94b5ef5a1eb (patch)
treede1271f0ab4b4cdc7ecbf62a5c5bdb57c7b7ada6
parent331c6e910f1acfcd854428241789431ebed65677 (diff)
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>
-rw-r--r--drivers/scsi/mac53c94.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/mac53c94.c b/drivers/scsi/mac53c94.c
index 070ebe352f9e..f75928f7773e 100644
--- a/drivers/scsi/mac53c94.c
+++ b/drivers/scsi/mac53c94.c
@@ -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;
}