From patchwork Sun Jan 8 18:48:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepak R Varma X-Patchwork-Id: 40534 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1813356wrt; Sun, 8 Jan 2023 10:51:12 -0800 (PST) X-Google-Smtp-Source: AMrXdXvNS+QOVWlhNAklDlb8QqYN4kLNmU1WTwevlRFoYibDVccgZPUNuCGGggwNGUfqj9MLSAmI X-Received: by 2002:a17:90a:1008:b0:226:18ca:b53d with SMTP id b8-20020a17090a100800b0022618cab53dmr44624839pja.41.1673203872123; Sun, 08 Jan 2023 10:51:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673203872; cv=none; d=google.com; s=arc-20160816; b=zu3sr+wVLXAiV80ITKy6UQzrFh7q7P3JxCKJ6dKVkIjfF1ZRwD+bcxOLt1YA8bUrYi UJ/IUxR9O4HO6RV/3RCa3FZ+rwjWOr85KrQ3xi6ErCk6ic69SZYkU11Wig5ORA1xm51a S8OzOMf2foiypmpK6Q3Nwm9Lv4mF0gkK2PJXJwVf766/czc7dIuYH4n31c6m3SN9DH0T 4Eiw0UKSBsnU0K27bruZKMa5q+GssZxQxhcDM8AK8MlVxbjnBlAdTQPMtDRKUoXaSvb3 k1ucjvmdZu5O/U/uRoM1JT3HQOnJckPWpbXK9TWSNFGpzX2uMp1MLei9odSyX4TEt4Rq HKzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date:dkim-signature; bh=QcmWqGiI53tzgcTN2K3TMJjhLtmg/QCCuH0JRz3hht4=; b=GD/Gwdw/x0Xul0GN39aKJJxOE9WtFnNsbGFpIlbrqidBc8J0cMfJyJ8kfuBfFByniE AXGOnSdBb1wIRZUZS78XX682CMU1Eq0N3XV92bzlA1uI0Vm9IJTFHi5SAE8ae/h54qFd c4Fq/XqYMXaPLt4ED3aaiNZw64Z8xtCvw240Xj+lnOiTmOpIMeCLk0Bc9lhpk51XtZn9 iLRPtaeCZGgImjoWZJx5Y9UPKX0bOiZrR7F2IZBJqMT4SHvhYqXnzwM6FO/mANjKn/PY +ktRKXqKSCRZgSeRgTCCDTcLlmpjyQACLAP1Vas3dAkD2V3NMcAwgXLryJ0x/0QT845M y+gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=D7z6YqZK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c21-20020a17090a8d1500b00225c981fee5si11148206pjo.112.2023.01.08.10.51.00; Sun, 08 Jan 2023 10:51:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=D7z6YqZK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235924AbjAHStB (ORCPT + 99 others); Sun, 8 Jan 2023 13:49:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235893AbjAHSsz (ORCPT ); Sun, 8 Jan 2023 13:48:55 -0500 Received: from msg-2.mailo.com (msg-2.mailo.com [213.182.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEEC2FCC2; Sun, 8 Jan 2023 10:48:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1673203720; bh=0Jpqh8Vd9R1/JOeJmSJuYMulmrFLVyAE0tgkEvzZVDk=; h=X-EA-Auth:Date:From:To:Subject:Message-ID:MIME-Version: Content-Type; b=D7z6YqZKy7J5jzAO8Z8J3ibOxjHZul9NjqS+eKpzTCygChHvYaaIcJ5OUIBs6Xw5w 3FELGrwvCm8DjsE6cpL8hzzl0x+mWLbtv1lTD11vniXnUC5VuQbZFeYsOlw2QfhNiP FvLPLre3RPcCFe0K9CpzyBfoSevoseNTWajXDUAw= Received: by b-5.in.mailobj.net [192.168.90.15] with ESMTP via ip-206.mailobj.net [213.182.55.206] Sun, 8 Jan 2023 19:48:40 +0100 (CET) X-EA-Auth: ODOImPIEwNov/E+Swoh66grswSJavxIx1kyDzU9EG3NjkJ706oWC3HdS1KrnUicgkEqFT99kkb+Ap71MBligjSXnz0ARp0/q Date: Mon, 9 Jan 2023 00:18:36 +0530 From: Deepak R Varma To: Brian King , "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: Remove unnecessary semicolon Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754481423390077882?= X-GMAIL-MSGID: =?utf-8?q?1754481423390077882?= A semicolon at the end of a switch case block is unnecessary. So remove it. Issue identified using semicolon.cocci Coccinelle semantic patch. Signed-off-by: Deepak R Varma --- drivers/scsi/ipr.h | 2 +- drivers/scsi/qlogicpti.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/ipr.h b/drivers/scsi/ipr.h index 69444d21fca1..54e47ce18338 100644 --- a/drivers/scsi/ipr.h +++ b/drivers/scsi/ipr.h @@ -1977,7 +1977,7 @@ static inline int ipr_sdt_is_fmt2(u32 sdt_word) case IPR_SDT_FMT2_BAR5_SEL: case IPR_SDT_FMT2_EXP_ROM_SEL: return 1; - }; + } return 0; } diff --git a/drivers/scsi/qlogicpti.c b/drivers/scsi/qlogicpti.c index 8c961ff03fcd..72fc8c98a29d 100644 --- a/drivers/scsi/qlogicpti.c +++ b/drivers/scsi/qlogicpti.c @@ -1150,7 +1150,7 @@ static struct scsi_cmnd *qlogicpti_intr_handler(struct qlogicpti *qpti) case COMMAND_ERROR: case COMMAND_PARAM_ERROR: break; - }; + } sbus_writew(0, qpti->qregs + SBUS_SEMAPHORE); }