Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp1203738pxt; Sat, 7 Aug 2021 03:58:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuiIS3MjhClc9fuHW4nie0tV/QhR33qbZfVAQsDxqXpgAmGtb6AohHfYB5CtVQCdMpuvqn X-Received: by 2002:a05:6e02:525:: with SMTP id h5mr578034ils.205.1628333889681; Sat, 07 Aug 2021 03:58:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628333889; cv=none; d=google.com; s=arc-20160816; b=sEP+eP3es61X9iVDFAjZbSBxRFTUebGB+LimmVFM09PVLhUs0EQAhqBT0TcvRTdOGc cyUm2f+vDLze/mCckRnCENq7BQXuUhrFB/M1fXL+ujatURzFMmb+0G8tdhRNAxPm4Z4J HzeJAITR7vLirxTRAQMSPRZNiJD+NTYNq7iHQwUYl787UZ/EXFOVkVJzKR6Vx0p7ifFD r7qyAspCkhrn2aWYYquBe1JxlkybgzB+U81jDutMWuznH/fxYYZKwpMnCHrzmFcMX8q9 n2qrpzk1F8mabNbI5CmKZ0vsg5AgXZEwpqu5fR+xaytxztzt0+8o43pcHecugwoESzQf qT8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=1y9hRSL302MK7u/rxJiHP3vD24fO/Ya2wUHY5MTcq5o=; b=KbMewwtGwEqgOrXD34l8HH+opnYpbEcSwQOQrhLhVYdr9mOfdt5Z+7cSrhKIAh7EGv 6ioopIGSVBRHv1IFWGX6nbRBTzOraBXp8PnqfIzXTWeHfJEnryLfn4bjepDB8hIuJdym DXw64Znrg4Ulkl4G/4JAcKx1dQMF5C6nnpQGQK1PCW9KH4K1OJqwPag9BpBnmMTO9/uH oFni+KLM0PtSO/abosHUBya0jJjfqmbUIBZKYzwe29wlg9PXhxbBays2IFSN0cVpGIKH VshrpedCQeJJZujZLLsFleECq22ZdTMdV479Im8RvfKKv6OEUXeUUN0YjyXYCVlu+HNa 812g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y5si10467684ioc.20.2021.08.07.03.57.57; Sat, 07 Aug 2021 03:58:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232036AbhHGK4z (ORCPT + 99 others); Sat, 7 Aug 2021 06:56:55 -0400 Received: from smtpbg704.qq.com ([203.205.195.105]:33156 "EHLO smtpproxy21.qq.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231991AbhHGK4w (ORCPT ); Sat, 7 Aug 2021 06:56:52 -0400 X-QQ-mid: bizesmtp41t1628333771tok4ud4z Received: from localhost.localdomain (unknown [125.69.42.194]) by esmtp6.qq.com (ESMTP) with id ; Sat, 07 Aug 2021 18:56:10 +0800 (CST) X-QQ-SSF: 01000000002000B0C000B00A0000000 X-QQ-FEAT: Rrz2csB1TU0Qwsk/qlXbx4vcERuTtEo3P+PTX+6ijfugqOkKyBpVs+cDPGAcT PrKQvolgJ1MLaQdWeIQWbQURTHoc9bM3bahOktDStKRWr6ooBTl4s2k5hsIEmbXlWEa//Z9 jJDi+B2Bu7yOkZRFvOl7qO0xf5Y6Lr00hRr9QeRKeadgZTkcU3hFVKwLOS74e92vjpIGtv+ zc1lI6I9iGzUqMIRBnQnkrFsNo1a0FEgUxxy0iFu1gpXcc507SBhnAGdQ75vNTTlMihgYh2 kZ9lUwZ7hyKIvfhba9Mrs4GMPFeVM/sk7uTdhPEgi52fhipmRAI/olH1pUujSO5X5ENHGC5 XQ6CY7n X-QQ-GoodBg: 0 From: Jason Wang To: martin.petersen@oracle.com Cc: jejb@linux.ibm.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Jason Wang Subject: [PATCH] scsi: aha1542: Remove unneeded semicolon Date: Sat, 7 Aug 2021 18:55:25 +0800 Message-Id: <20210807105525.192240-1-wangborong@cdjrlc.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybgforeign:qybgforeign2 X-QQ-Bgrelay: 1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The semicolon after a code block bracket is unneeded in C. Thus, we can remove the redundant semicolon from the code safely. Signed-off-by: Jason Wang --- drivers/scsi/aha1542.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c index 1210e61afb18..7229748a57b9 100644 --- a/drivers/scsi/aha1542.c +++ b/drivers/scsi/aha1542.c @@ -304,7 +304,7 @@ static irqreturn_t aha1542_interrupt(int irq, void *dev_id) if (flag & SCRD) printk("SCRD "); printk("status %02x\n", inb(STATUS(sh->io_port))); - }; + } #endif number_serviced = 0; @@ -346,7 +346,7 @@ static irqreturn_t aha1542_interrupt(int irq, void *dev_id) if (!number_serviced) shost_printk(KERN_WARNING, sh, "interrupt received, but no mail.\n"); return IRQ_HANDLED; - }; + } mbo = (scsi2int(mb[mbi].ccbptr) - (unsigned long)aha1542->ccb_handle) / sizeof(struct ccb); mbistatus = mb[mbi].status; @@ -411,7 +411,7 @@ static irqreturn_t aha1542_interrupt(int irq, void *dev_id) */ my_done(tmp_cmd); number_serviced++; - }; + } } static int aha1542_queuecommand(struct Scsi_Host *sh, struct scsi_cmnd *cmd) @@ -537,7 +537,7 @@ static void setup_mailboxes(struct Scsi_Host *sh) any2scsi(aha1542->mb[i].ccbptr, aha1542->ccb_handle + i * sizeof(struct ccb)); aha1542->mb[AHA1542_MAILBOXES + i].status = 0; - }; + } aha1542_intr_reset(sh->io_port); /* reset interrupts, so they don't block */ any2scsi(mb_cmd + 2, aha1542->mb_handle); if (aha1542_out(sh->io_port, mb_cmd, 5)) @@ -552,7 +552,7 @@ static int aha1542_getconfig(struct Scsi_Host *sh) i = inb(STATUS(sh->io_port)); if (i & DF) { i = inb(DATA(sh->io_port)); - }; + } aha1542_outb(sh->io_port, CMD_RETCONF); aha1542_in(sh->io_port, inquiry_result, 3, 0); if (!wait_mask(INTRFLAGS(sh->io_port), INTRMASK, HACC, 0, 0)) @@ -581,7 +581,7 @@ static int aha1542_getconfig(struct Scsi_Host *sh) default: shost_printk(KERN_ERR, sh, "Unable to determine DMA channel.\n"); return -1; - }; + } switch (inquiry_result[1]) { case 0x40: sh->irq = 15; @@ -604,7 +604,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; } @@ -639,7 +639,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"); @@ -657,7 +657,7 @@ static int aha1542_query(struct Scsi_Host *sh) i = inb(STATUS(sh->io_port)); 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)) @@ -676,7 +676,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 -- 2.32.0