diff options
author | Haowen Bai | 2022-03-14 15:58:31 +0800 |
---|---|---|
committer | Martin K. Petersen | 2022-04-25 23:23:05 -0400 |
commit | 93de8df20537697cc2e74ac42b61e94b5ef5a1eb (patch) | |
tree | de1271f0ab4b4cdc7ecbf62a5c5bdb57c7b7ada6 | |
parent | 331c6e910f1acfcd854428241789431ebed65677 (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.c | 2 |
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, ®s->command); } - if (cmd == 0) { + if (!cmd) { printk(KERN_DEBUG "53c94: interrupt with no command active?\n"); return; } |