Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3015678imu; Sun, 23 Dec 2018 13:29:08 -0800 (PST) X-Google-Smtp-Source: AFSGD/UXYGw8JmfXO3+UYEOUUps1nK5mDV2JQxFJ7tm53HFV/0nplhzu+cOS46HshTblipzSX6ui X-Received: by 2002:a62:fc8a:: with SMTP id e132mr10768523pfh.176.1545600548610; Sun, 23 Dec 2018 13:29:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545600548; cv=none; d=google.com; s=arc-20160816; b=gl2sYCh1AGwGT50X6BaQIEWK+o9qi0vCixb2AcLOLtVlAsywrT3Bb5VKnz/LbWcMKR foTgzKkk4TYxyNunp0f5UCinDff5EK6iKSB097OpwjdaiTQebF7uOaJRPjooBNbYB0gB g0TwsE7RecJayha/LbpSdQVRvkBOQkQCAojgwDE/8KJ2Zesy4SuYEQ6ut8k++6NeFEW9 ikRrrd8QRO3RGPi3WQp4lRgWcOuZdc2FG6WfP9lWWEc39itZ3aMv15550rCOGSVKJNAX 24No5O4YrQqMm1qLZrJSpp+CJDbGpTyiSi/sLGyeUiqYOIuZUhoiR/zImBqsjdkeq0BE sT/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=pJbGivqzjMJdJeqpx6CiBKzDlnRbpA+vSywyiDD3Zms=; b=dFWXdr45tiMRbgOIaptOlmEhPU6JVdih2nmVPbPwH1xD2vDKibdRh2Lk18DLh9Uc1M 3WAJ/BHcpV73fmj2ZUMTpATcjlqFIhrc+M/mgMurM4txZJrGM+4gZ6CS6+cp4j6j2DuW YRjXmryFiGlmSqL/oOUnoKuZvHGmr2HnuVc9/ByvivGBCpQFB7wxUEH21kmavA+yvOos VpJV8/hC+r5pdWA+04J/M9Y4+hFodHFdt+Ucedf795Blb26agh7WkDzr55j+7rzUhieV d+ftK+gXUahcmh0WEDxdSeD4fuKsZvZh0jXeBn7wKr3QbVf5FW0b9+fsYhbOBzN5l1Li z9vg== 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 11si26125058pgy.408.2018.12.23.13.28.22; Sun, 23 Dec 2018 13:29:08 -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 S1725893AbeLWV0L (ORCPT + 99 others); Sun, 23 Dec 2018 16:26:11 -0500 Received: from fieldses.org ([173.255.197.46]:53572 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725828AbeLWV0K (ORCPT ); Sun, 23 Dec 2018 16:26:10 -0500 Received: by fieldses.org (Postfix, from userid 2815) id 38DA6C57; Sun, 23 Dec 2018 16:26:10 -0500 (EST) Date: Sun, 23 Dec 2018 16:26:10 -0500 From: "J. Bruce Fields" To: Julia Lawall Cc: kernel-janitors@vger.kernel.org, Jeff Layton , linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 01/20] nfsd: drop useless LIST_HEAD Message-ID: <20181223212610.GB3183@fieldses.org> References: <1545555435-24576-1-git-send-email-Julia.Lawall@lip6.fr> <1545555435-24576-2-git-send-email-Julia.Lawall@lip6.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1545555435-24576-2-git-send-email-Julia.Lawall@lip6.fr> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Applied, thanks.--b. On Sun, Dec 23, 2018 at 09:56:56AM +0100, Julia Lawall wrote: > 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) {