Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp370944pxf; Thu, 18 Mar 2021 02:21:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2Kp3peB0wXnsMtaWS6sAO1+NR238y4lG40Q1xZ/smVhSNjfm/QvBzNCGiAFhrYM4fTkmL X-Received: by 2002:a05:6402:c88:: with SMTP id cm8mr2435376edb.62.1616059287463; Thu, 18 Mar 2021 02:21:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616059287; cv=none; d=google.com; s=arc-20160816; b=Q+9pACNczmg8cCKELDdPhzICGxWehhnTKF2WtWIuZQGxSDh+hDkg0XJ+aOEi0SbLi3 eowYqW4NQwtsGNGQYnYLpwXX8M6YibFmXc3GA9q7oY/xx0l6IrIZCSJoffQv5vfqoXog iQe98xXMunUHNN8oYsy331HyV3xmXti9HkXCz/SND6RzdnIdxTBPAV277tIJPC7Yrlz3 6B9nyXn/OvfFkuOvbz7tM+GwjWuv9F3pgYv3cffN7GPq5h9/A5hK7j/mnL+cdx2AXQQc wkZ0m87o8p4jYLigcsBR5GOB0eBZkKnzGrEBhNBzWgqTt2i08dgkI24zXYh8r5H3x7Gr TZ0g== 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=ntuFpH7E3lr25cTHqZ/SooNRNMubP4FQIbEF7h/SHMc=; b=nbL3eHxOK7WHzR1NSjMRSXRviABZZHj5WHaBCRgBc8Y1ohy3b1UQVUJ7pAMG2x5996 YH+wyvdcMtHJvYOFJpsQ1LYEdWFjuik4orqvUg/9GXjUYhXh7Xrv9Rx+RYoODUMIi96T 1hJgKQg3G4CtrWbYYBCdabAqjVk4TnwpNPUqVqfRnhNexPNNueb3TY9u5QORvtdfvPeT JbmV7NqpChKQ+5WTRan5+MhrOALBx72iS5wMJ3p/0sktVL6QFZpPs2ih+cAoVK2RY33/ flvLjBuaEvmGZHGB7RleAQa7mcJ/i0lLohy6zXO8INBVMNXcWrKGjlY/SmOSzV0dTIiK WzEw== 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 a9si1163599ejk.421.2021.03.18.02.21.04; Thu, 18 Mar 2021 02:21:27 -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 S229712AbhCRJUI (ORCPT + 99 others); Thu, 18 Mar 2021 05:20:08 -0400 Received: from out30-56.freemail.mail.aliyun.com ([115.124.30.56]:41767 "EHLO out30-56.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229558AbhCRJTa (ORCPT ); Thu, 18 Mar 2021 05:19:30 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0USPiPP1_1616059157; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0USPiPP1_1616059157) by smtp.aliyun-inc.com(127.0.0.1); Thu, 18 Mar 2021 17:19:28 +0800 From: Jiapeng Chong To: jejb@linux.ibm.com Cc: martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] scsi: aha1542: remove unneeded semicolon Date: Thu, 18 Mar 2021 17:19:15 +0800 Message-Id: <1616059155-52449-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warnings: ./drivers/scsi/aha1542.c:569:2-3: Unneeded semicolon. ./drivers/scsi/aha1542.c:554:2-3: Unneeded semicolon. ./drivers/scsi/aha1542.c:519:2-3: Unneeded semicolon. ./drivers/scsi/aha1542.c:508:3-4: Unneeded semicolon. ./drivers/scsi/aha1542.c:407:2-3: Unneeded semicolon. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/scsi/aha1542.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c index 21aab9f5b117..6d4d7d60bfba 100644 --- a/drivers/scsi/aha1542.c +++ b/drivers/scsi/aha1542.c @@ -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)) @@ -564,9 +564,9 @@ static int aha1542_getconfig(struct Scsi_Host *sh) u8 inquiry_result[3]; 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_RETCONF); aha1542_in(sh->io_port, inquiry_result, 3, 0); if (!wait_mask(INTRFLAGS(sh->io_port), INTRMASK, HACC, 0, 0)) -- 2.20.1.2432.ga663e714