Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2578027pxb; Tue, 13 Apr 2021 05:29:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDbjIe9umX1IlG6Mnm0rtv4ER+hIJnahiQTLCtFi+31//72wtpp+7hTBDU1aMG8ujuedW2 X-Received: by 2002:a05:6402:1853:: with SMTP id v19mr34353957edy.179.1618316987041; Tue, 13 Apr 2021 05:29:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618316987; cv=none; d=google.com; s=arc-20160816; b=ZQGz3eCdjxp3RGrsHRQm22ghXQG6m13sbJkh/Eg4PoQrmqxCXvHiMDnRmzM+1NzNii ZiUyDBLXMrLdkP7pCx/Cm4OZi5x6Kion09/1r+G4dfPq1VtQcVyB+nGCS00ZHe1SZ0t8 bL5uXS19B1WMCDjcj8uzWOUScEjK51u+0Yp7UmisNhTcHSTMbS0x6guNcoPidaKI8CJq ZUZanX0H3T/uABjijN9a6ZaWOkiL/ZmpEjFZ8cmJWJUpFGBsuPDPAgNmANBfcC3CvsUW 4J/sJB8ZyLLVu/vfDKSKRJUpSOtfZNNqD65t7SHAo3r+mzdkEHfpLGEhN6dFiT/8Gktd qdIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=8FwaBpwYhOO/OaWxNaEnwjqDR/iHR+kz73K570f/KCA=; b=XWkcC/kZ/htCNz37qjL3ZzjKZwfy7ICFRFnsnlFUvsSbt7uiqBcFTSJIaZe4C/rk6l Pht2QX8pjvrFMdiF6wnhLXIB4H0BKf0GUjfh3ovQuntbcUWYacmBoYNNs6jyQBKhOhqi k1vCWQbP61DAcw5vfnEhaw3kMJAqq8Zbr4QQB1RN8wYFNkSVl45iY+gOj4OtBbni+Vac zTqcH5ZtRx3m/Cd6HpSmm3Vd7IGomt2HX3hdleTGWKztaofIkAx5XWMtRmqHlej90QU4 fGkWVXQ6yyg7Ves4cFXvVqST1ZMn36mpELqUgv88zEmxCB8h2YLUz/hs0gr3v4l7zs4w ObGg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r28si10382440edc.358.2021.04.13.05.29.23; Tue, 13 Apr 2021 05:29:47 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241422AbhDMDRl (ORCPT + 99 others); Mon, 12 Apr 2021 23:17:41 -0400 Received: from out30-130.freemail.mail.aliyun.com ([115.124.30.130]:41607 "EHLO out30-130.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239653AbhDMDRk (ORCPT ); Mon, 12 Apr 2021 23:17:40 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R711e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04423;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0UVPNkMt_1618283840; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0UVPNkMt_1618283840) by smtp.aliyun-inc.com(127.0.0.1); Tue, 13 Apr 2021 11:17:20 +0800 From: Yang Li To: jejb@linux.ibm.com Cc: martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH v2] scsi: aha1542: remove unneeded semicolon Date: Tue, 13 Apr 2021 11:17:18 +0800 Message-Id: <1618283838-103057-1-git-send-email-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Eliminate the following coccicheck warning: ./drivers/scsi/aha1542.c:297:2-3: Unneeded semicolon ./drivers/scsi/aha1542.c:339:3-4: Unneeded semicolon ./drivers/scsi/aha1542.c:404:2-3: Unneeded semicolon ./drivers/scsi/aha1542.c:505:3-4: Unneeded semicolon ./drivers/scsi/aha1542.c:516:2-3: Unneeded semicolon ./drivers/scsi/aha1542.c:551:2-3: Unneeded semicolon ./drivers/scsi/aha1542.c:566:2-3: Unneeded semicolon ./drivers/scsi/aha1542.c:595:2-3: Unneeded semicolon ./drivers/scsi/aha1542.c:618:2-3: Unneeded semicolon ./drivers/scsi/aha1542.c:653:2-3: Unneeded semicolon ./drivers/scsi/aha1542.c:671:2-3: Unneeded semicolon ./drivers/scsi/aha1542.c:690:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- Changes in v2: --One patch per driver drivers/scsi/aha1542.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c index 21aab9f..634f6ab 100644 --- a/drivers/scsi/aha1542.c +++ b/drivers/scsi/aha1542.c @@ -297,7 +297,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; @@ -339,7 +339,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; @@ -404,7 +404,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) @@ -505,7 +505,7 @@ static int aha1542_queuecommand(struct Scsi_Host *sh, struct scsi_cmnd *cmd) scsi_for_each_sg(cmd, sg, sg_count, i) { any2scsi(acmd->chain[i].dataptr, sg_dma_address(sg)); any2scsi(acmd->chain[i].datalen, sg_dma_len(sg)); - }; + } any2scsi(ccb[mbo].datalen, sg_count * sizeof(struct chain)); any2scsi(ccb[mbo].dataptr, acmd->chain_handle); #ifdef DEBUG @@ -516,7 +516,7 @@ static int aha1542_queuecommand(struct Scsi_Host *sh, struct scsi_cmnd *cmd) ccb[mbo].op = 0; /* SCSI Initiator Command */ any2scsi(ccb[mbo].datalen, 0); any2scsi(ccb[mbo].dataptr, 0); - }; + } ccb[mbo].idlun = (target & 7) << 5 | direction | (lun & 7); /*SCSI Target Id */ ccb[mbo].rsalen = 16; ccb[mbo].linkptr[0] = ccb[mbo].linkptr[1] = ccb[mbo].linkptr[2] = 0; @@ -551,7 +551,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)) @@ -566,7 +566,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)) @@ -595,7 +595,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; @@ -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"); @@ -671,7 +671,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)) @@ -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