Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2827327imu; Sun, 23 Dec 2018 08:40:28 -0800 (PST) X-Google-Smtp-Source: ALg8bN5eNXkgRY2gGhehcQnL/SQl99AaHKnNQ69aL+117LKyLgrdnvJFF3zmqWV5WlyvdrrFNxXw X-Received: by 2002:a63:484c:: with SMTP id x12mr9547372pgk.375.1545583228796; Sun, 23 Dec 2018 08:40:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545583228; cv=none; d=google.com; s=arc-20160816; b=b0NQzaMyYEuUlq5H8EzSSz4zvaJFL1RwM7s7zomy7t7ITfjsAtv/01VcpKFRPXz385 e7QjSx/LoAMTGFjaanV5Zg/RnKd1bUy/8a6WmarF/2xdBIoVseGUox5vSIuiXJnVnGzP f3HAZeOQ6NH6m9n/ot3XJ85GohTMpcp+Un4R1zGYi2H6a+CE7XL6hHLEekpXCk5yZ1yI zM8or527XfNE5XHlvHB9f5kXMSNWc71SiMUROVqNGbdtpysY/J0kJlhbWv2vw7FzLd5X tEleWL/GtBannvY/zEEXgj2ztvIVvxnkI7lr6zleCdiPeToE0oApwY2/YxX9I99Klirn lxKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=5G466VcjPB57aQmQqoFAV2Rp+A6SnZ0E538Y0zdKya0=; b=PXo3JM9J6aF9zWucqqTQO47uMeoHqWpIbYsaiYeb283987hgHK07XmENYgkaMqp6Co 3RT0FAkI9Ajl7p0maJJT0BRRrk3rZc4TYE73PlvILTH4thjgwV1eihnJ3jItLaY9aDPw wAUhIttKodOeSdSmA5vRz9v/Ahpn4ml0gJdnmTUuu7hPwTzNqpu0QEkJznxTrZohFDuq 9h4Q0O9y2TAo7i/t8Fp8O5IH2m4K+HKAADQV8IDaj+vNTKc6KTSWg/PKqSuSGCsugUkP Z4kx6j9Z/9yOvDDStKmMTocFbxMWLkztkWaiXEjY2ewQ45HcS1TbrrqYN1uGYl2lNviT wFUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 v5si25616109pfe.52.2018.12.23.08.40.13; Sun, 23 Dec 2018 08:40:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727190AbeLWJdz (ORCPT + 99 others); Sun, 23 Dec 2018 04:33:55 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:44293 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727117AbeLWJdz (ORCPT ); Sun, 23 Dec 2018 04:33:55 -0500 X-IronPort-AV: E=Sophos;i="5.56,386,1539640800"; d="scan'208";a="289991763" Received: from palace.lip6.fr ([132.227.105.202]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/AES128-SHA256; 23 Dec 2018 10:33:52 +0100 From: Julia Lawall To: "J. Bruce Fields" Cc: kernel-janitors@vger.kernel.org, Jeff Layton , linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/20] nfsd: drop useless LIST_HEAD Date: Sun, 23 Dec 2018 09:56:56 +0100 Message-Id: <1545555435-24576-2-git-send-email-Julia.Lawall@lip6.fr> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1545555435-24576-1-git-send-email-Julia.Lawall@lip6.fr> References: <1545555435-24576-1-git-send-email-Julia.Lawall@lip6.fr> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Drop LIST_HEAD where the variable it declares is never used. This was introduced in c5c707f96fc9a ("nfsd: implement pNFS layout recalls"), but was not used even in that commit. The semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // @@ identifier x; @@ - LIST_HEAD(x); ... when != x // Fixes: c5c707f96fc9a ("nfsd: implement pNFS layout recalls") Signed-off-by: Julia Lawall --- Successfully 0-day tested on 151 configurations. fs/nfsd/nfs4layouts.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/nfsd/nfs4layouts.c b/fs/nfsd/nfs4layouts.c index 2b36aa037ce0..44517fb5c0de 100644 --- a/fs/nfsd/nfs4layouts.c +++ b/fs/nfsd/nfs4layouts.c @@ -656,7 +656,6 @@ nfsd4_cb_layout_done(struct nfsd4_callback *cb, struct rpc_task *task) struct nfsd_net *nn; ktime_t now, cutoff; const struct nfsd4_layout_ops *ops; - LIST_HEAD(reaplist); switch (task->tk_status) {