From patchwork Sun Nov 1 14:40:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 11872073 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 39721697 for ; Sun, 1 Nov 2020 14:40:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1B5AB22246 for ; Sun, 1 Nov 2020 14:40:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="MUYiCNWV" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726792AbgKAOkZ (ORCPT ); Sun, 1 Nov 2020 09:40:25 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:55156 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726781AbgKAOkZ (ORCPT ); Sun, 1 Nov 2020 09:40:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1604241624; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=WUL64u8dGf0LoKnUz7lF+D+J0ocjCbe9Ay8eU/rDBJ4=; b=MUYiCNWVPtAryyGmrLctOHyTrWEyRdr8tRX7qtaMRkiEEVjf5CIwdCXI3Va+eWVyVIC2YA joiyIiVEjGxukAPboFAT1YH2J4MKf96KtBlHQpN31l+33Sh05HYWJMoMiEnSzPspUmh99v XiL43rOFUlHOHdN99GoKKRnczhNu4Ec= Received: from mail-ot1-f71.google.com (mail-ot1-f71.google.com [209.85.210.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-484-U59IiFZqM9md4zwJDroXhA-1; Sun, 01 Nov 2020 09:40:22 -0500 X-MC-Unique: U59IiFZqM9md4zwJDroXhA-1 Received: by mail-ot1-f71.google.com with SMTP id 36so231735otu.11 for ; Sun, 01 Nov 2020 06:40:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=WUL64u8dGf0LoKnUz7lF+D+J0ocjCbe9Ay8eU/rDBJ4=; b=G1r+opjiBH05bQHMWs265WwbKVuSQPGwA/EqPMcxc+C+JJe5mePZNYs2ftdkVF0D6w EuJdVoORMl/WWbgtOgbCb6/OmcWqzCmb1csR0DakIQGUm7JUmkzHWZWo4orj/fcWdVSc KRLCB8XchUUgtW6rGQczlrncIPwFvXnZwsvEifA5SSZnlWovGUnSvw9P48zKBRc0sRCN hjuDmp4VAzZkI/EXNgzs7oq98FZHxZGMCv1X2H5TclGLbtXAOS5LvvM9Is+IQWW+myJi GsiLV/Znsmh7TIuSAHxJTfbxVGeRaRALb8Cib6oYeyVgeYOxIrZM+Nc/BQwxWEf/vlRc priw== X-Gm-Message-State: AOAM533v1M76e/Zko+j+37ItsIHFPa4RdlvcNUv2riZdH8nYe6VUW4ZY xFbuY9Cwn/oOYBGH5XNBJVvptv0jrs9Lvmks0an1ZOFzQQ63JUm55eCWvu186v7STrgaGgbUxzN fHoYMX6OVxuzbR2F+n1KaTg== X-Received: by 2002:aca:ab50:: with SMTP id u77mr3838864oie.111.1604241621988; Sun, 01 Nov 2020 06:40:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJwCMM4TlP5Yz7zso7HiOmxshFFIZRjvHbAQQc7PaS/R66+AJ3PeA5xHwhc2C7I73PxclekXbQ== X-Received: by 2002:aca:ab50:: with SMTP id u77mr3838855oie.111.1604241621808; Sun, 01 Nov 2020 06:40:21 -0800 (PST) Received: from trix.remote.csb (075-142-250-213.res.spectrum.com. [75.142.250.213]) by smtp.gmail.com with ESMTPSA id f18sm2931296otp.10.2020.11.01.06.40.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Nov 2020 06:40:21 -0800 (PST) From: trix@redhat.com To: hare@suse.de, jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Tom Rix Subject: [PATCH] scsi: fcoe: remove unneeded semicolon Date: Sun, 1 Nov 2020 06:40:17 -0800 Message-Id: <20201101144017.2284047-1-trix@redhat.com> X-Mailer: git-send-email 2.18.1 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org From: Tom Rix A semicolon is not needed after a switch statement. Signed-off-by: Tom Rix --- drivers/scsi/fcoe/fcoe.c | 2 +- drivers/scsi/fcoe/fcoe_sysfs.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index a4be6f439c47..03bf49adaafe 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c @@ -2023,7 +2023,7 @@ static int fcoe_ctlr_enabled(struct fcoe_ctlr_device *cdev) case FCOE_CTLR_UNUSED: default: return -ENOTSUPP; - }; + } } /** diff --git a/drivers/scsi/fcoe/fcoe_sysfs.c b/drivers/scsi/fcoe/fcoe_sysfs.c index ffef2c8eddc6..af658aa38fed 100644 --- a/drivers/scsi/fcoe/fcoe_sysfs.c +++ b/drivers/scsi/fcoe/fcoe_sysfs.c @@ -312,7 +312,7 @@ static ssize_t store_ctlr_mode(struct device *dev, default: LIBFCOE_SYSFS_DBG(ctlr, "Mode change not supported.\n"); return -ENOTSUPP; - }; + } } static FCOE_DEVICE_ATTR(ctlr, mode, S_IRUGO | S_IWUSR, @@ -346,7 +346,7 @@ static ssize_t store_ctlr_enabled(struct device *dev, break; case FCOE_CTLR_UNUSED: return -ENOTSUPP; - }; + } rc = ctlr->f->set_fcoe_ctlr_enabled(ctlr); if (rc)