Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2827970imu; Sun, 23 Dec 2018 08:41:33 -0800 (PST) X-Google-Smtp-Source: AFSGD/WZuSIlD63LcSPI4pLAYC9dALAJJG1VYHNHepuzie6H0fIix1WV0WIepDWjxvhUlCC30pl/ X-Received: by 2002:a62:6b8a:: with SMTP id g132mr9670105pfc.201.1545583293173; Sun, 23 Dec 2018 08:41:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545583293; cv=none; d=google.com; s=arc-20160816; b=xPWm7FDGdwgtETCtTOix1H6mxGp0zpBUUsyTg+ow8NbsZiMTvt4wKHeSwBWwgBF2am HKw/dgKd+C+opdVUffX3w/FkDh/1jEaYeecNIhE5kPQKF967qGKNI0cG9OhsKGQaFi8l geQi2PqvbXkgI9nDKCqj7XaURi3hsYfaX/5sN5iEmm9UhAT1b2l63RkzufjO/oS+UCq9 akxtfG9fkC5UtXki5l/Q/ZEJYR+vundi0ivkW11G66ht6wzyQOeC8KZxrXiHdXfxp0P1 QkPNXht7ZnV3cqL3kZY2iwqWKM6HS0CbDyJjDUV9DJ8F6O2pixAj79ckd1oeR4rqfwwW eK4A== 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=+6IbrcjwFpPUssQoWoS7a2qW0VtdSIiR/yB4qVwQzog=; b=dYjlvvpXptO9GcfLQzQ8SKllongz4rAvfmvIGYPflWvQbqv15RluKy0MwKJP6JomVE tFg4Fq5oboSAOmsuDp5fXWZ+zolkHSNtiKOoPyim4akB9ak5O5HIk+j64qoqHSLz8cJq QFL8lEIlRB3PwNh8V3zzGvjh3LfO9LQRpHkaOn82c5nQTRZXC1gWyuRGT9jeVUo2nWeK tDz/8XiA0IF5A5SuMZ///8M21wSdnANCsvde22qgZkNUX8yrcqziPPmP5mQH5NElpNme SN26LZ9AfolaT/Zy/fVAiuhfbV4POBqJRYYTtBq9z3YQCj+gI0iMPo8pGk09TErTZJJV B6ow== 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 t74si26416640pgc.150.2018.12.23.08.41.18; Sun, 23 Dec 2018 08:41:33 -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 S1727633AbeLWJfW (ORCPT + 99 others); Sun, 23 Dec 2018 04:35:22 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:44311 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727264AbeLWJeB (ORCPT ); Sun, 23 Dec 2018 04:34:01 -0500 X-IronPort-AV: E=Sophos;i="5.56,386,1539640800"; d="scan'208";a="289991773" 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:54 +0100 From: Julia Lawall To: "Darrick J. Wong" Cc: kernel-janitors@vger.kernel.org, linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 09/20] xfs: xfs_fsops: drop useless LIST_HEAD Date: Sun, 23 Dec 2018 09:57:04 +0100 Message-Id: <1545555435-24576-10-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. Commit 0410c3bb2b88 ("xfs: factor ag btree root block initialisation") stopped using buffer_list and started using a buffer list in an aghdr_init_data structure, but the declaration of buffer_list was not removed. The semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // @@ identifier x; @@ - LIST_HEAD(x); ... when != x // Fixes: 0410c3bb2b88 ("xfs: factor ag btree root block initialisation") Signed-off-by: Julia Lawall --- Successfully 0-day tested on 151 configurations. fs/xfs/xfs_fsops.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/xfs/xfs_fsops.c b/fs/xfs/xfs_fsops.c index ec2e63a7963b..f3ef70c542e1 100644 --- a/fs/xfs/xfs_fsops.c +++ b/fs/xfs/xfs_fsops.c @@ -40,7 +40,6 @@ xfs_growfs_data_private( xfs_rfsblock_t new; xfs_agnumber_t oagcount; xfs_trans_t *tp; - LIST_HEAD (buffer_list); struct aghdr_init_data id = {}; nb = in->newblocks;