Fix the following coccicheck warnings: ./drivers/scsi/aha1542.c:693:2-3: Unneeded semicolon. ./drivers/scsi/aha1542.c:674:2-3: Unneeded semicolon. ./drivers/scsi/aha1542.c:656:2-3: Unneeded semicolon. ./drivers/scsi/aha1542.c:621:2-3: Unneeded semicolon. Reported-by: Abaci Robot <abaci@xxxxxxxxxxxxxxxxx> Signed-off-by: Jiapeng Chong <jiapeng.chong@xxxxxxxxxxxxxxxxx> --- drivers/scsi/aha1542.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c index 21aab9f..6e34767 100644 --- a/drivers/scsi/aha1542.c +++ b/drivers/scsi/aha1542.c @@ -618,7 +618,7 @@ static int aha1542_getconfig(struct Scsi_Host *sh) default: shost_printk(KERN_ERR, sh, "Unable to determine IRQ level.\n"); return -1; - }; + } sh->this_id = inquiry_result[2] & 7; return 0; } @@ -653,7 +653,7 @@ static int aha1542_mbenable(struct Scsi_Host *sh) if (aha1542_out(sh->io_port, mbenable_cmd, 3)) goto fail; - }; + } while (0) { fail: shost_printk(KERN_ERR, sh, "Mailbox init failed\n"); @@ -669,9 +669,9 @@ static int aha1542_query(struct Scsi_Host *sh) u8 inquiry_result[4]; int i; i = inb(STATUS(sh->io_port)); - if (i & DF) { + if (i & DF) i = inb(DATA(sh->io_port)); - }; + aha1542_outb(sh->io_port, CMD_INQUIRY); aha1542_in(sh->io_port, inquiry_result, 4, 0); if (!wait_mask(INTRFLAGS(sh->io_port), INTRMASK, HACC, 0, 0)) @@ -690,7 +690,7 @@ static int aha1542_query(struct Scsi_Host *sh) if (inquiry_result[0] == 0x43) { shost_printk(KERN_INFO, sh, "Emulation mode not supported for AHA-1740 hardware, use aha1740 driver instead.\n"); return 1; - }; + } /* * Always call this - boards that do not support extended bios translation -- 1.8.3.1