Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1756003ybl; Thu, 19 Dec 2019 02:27:49 -0800 (PST) X-Google-Smtp-Source: APXvYqzcvOA9UJwt9ewwet3MQ99kgN5xnDevZuYSSqAzWwylUKKIOkiqb84An+qK7pBk74lO2lWL X-Received: by 2002:a05:6830:2057:: with SMTP id f23mr3721540otp.110.1576751269842; Thu, 19 Dec 2019 02:27:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576751269; cv=none; d=google.com; s=arc-20160816; b=Pm25kC1n4gsfthjajWY1ltPeR1c/eBTpHBf31lcfuJw7YqVecWRn7l+gAPHeqrEOkc Rm2wrLuW3UFNgO14HTU4QxHlydDc6gIdceatpFBs/cNR5Sx/vuGeqt3PJlcQJ4lgggym 1KiXg1MVd229t+2aeUE5H74Xa9KwOAMxJr8y+032CtOqsdDJSd39ZL7gnmeoO6ciFUyY nQ/BWpQwoph+9B01Vi7TedR5jAQXeu6EbpQZ4+c+Z2rWRryvxKae+Mqw+mK0NnsFM9fw VapZVgm5AGhI7HT1Om1ONvaPaLcnPahZjlFRkG2MxK3XXylM9I3nbq+Tq+BpF3zSYMPN dEpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=+U3lmlYtt0w7Lti6F17m1QLI3+xZI6UvYd5Z8hZudIE=; b=O3vCFLX/ThFeTgpiPeHFulpDk23ksxRjtao1QZlILuQyoRzd2dmR2XV8cT5wFjOo39 QgR4XkP3CwOlO/vi/nyD9N/xczBxghErwFEDIsTf7T12QW1QNl41wpM1y4NI7MJDsA6u 9V/tU+/Y95gRAZuWCombGzJZ4DqGxrV/5T0zD1S6RdWh9bwCBaQka7EqEaYFN8iyPaKC APhujr68O5JUq9tbSI55t+goK/OS2XeGKdBFxHRKefwP1Tz/04H9BkilcP0ZDpiRSz6H Baq2r4acXpcdb78ElCIAZMWYUPvFLv7fDJUoet8OXHcIAdVcgr+7y2VWIKi1lx04zv8q m15w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t15si2415310otp.135.2019.12.19.02.27.37; Thu, 19 Dec 2019 02:27:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726636AbfLSK1f (ORCPT + 99 others); Thu, 19 Dec 2019 05:27:35 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:54500 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726633AbfLSK1f (ORCPT ); Thu, 19 Dec 2019 05:27:35 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 281BFA74C48690F21961; Thu, 19 Dec 2019 18:27:33 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.439.0; Thu, 19 Dec 2019 18:27:26 +0800 From: zhengbin To: , , CC: Subject: [PATCH] NFS4: Remove unneeded semicolon Date: Thu, 19 Dec 2019 18:34:47 +0800 Message-ID: <1576751687-74876-1-git-send-email-zhengbin13@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Fixes coccicheck warning: fs/nfs/nfs4state.c:1138:2-3: Unneeded semicolon fs/nfs/nfs4proc.c:6862:2-3: Unneeded semicolon fs/nfs/nfs4proc.c:8629:2-3: Unneeded semicolon Reported-by: Hulk Robot Signed-off-by: zhengbin --- fs/nfs/nfs4proc.c | 4 ++-- fs/nfs/nfs4state.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 76d3716..63269d3 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -6859,7 +6859,7 @@ static void nfs4_handle_setlk_error(struct nfs_server *server, struct nfs4_lock_ case -NFS4ERR_STALE_STATEID: lsp->ls_seqid.flags &= ~NFS_SEQID_CONFIRMED; nfs4_schedule_lease_recovery(server->nfs_client); - }; + } } static int _nfs4_do_setlk(struct nfs4_state *state, int cmd, struct file_lock *fl, int recovery_type) @@ -8626,7 +8626,7 @@ static int _nfs4_proc_create_session(struct nfs_client *clp, case -EACCES: case -EAGAIN: goto out; - }; + } clp->cl_seqid++; if (!status) { diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index 3455232..fe1b908 100644 --- a/fs/nfs/nfs4state.c +++ b/fs/nfs/nfs4state.c @@ -1135,7 +1135,7 @@ static void nfs_increment_seqid(int status, struct nfs_seqid *seqid) case -NFS4ERR_MOVED: /* Non-seqid mutating errors */ return; - }; + } /* * Note: no locking needed as we are guaranteed to be first * on the sequence list -- 2.7.4