Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2827666imu; Sun, 23 Dec 2018 08:41:03 -0800 (PST) X-Google-Smtp-Source: ALg8bN6xYWQnoz8mkT6ZNldWm3/EURUDYE4xF9Bv8K4SzOd3QGmUxVQ7Iys5bSd76LMGunZf+vjY X-Received: by 2002:a63:88c7:: with SMTP id l190mr9449532pgd.110.1545583263524; Sun, 23 Dec 2018 08:41:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545583263; cv=none; d=google.com; s=arc-20160816; b=Tafq8h3gZXBLRxbG5F9P5A7SYLqYeMpQDcI96Sg+oCIdlOPJwc/a7iX5j/nlWNmzKU ewl1Rrg4JONWgl6ePxnkNN+VKf3Xi+zJbDHIv2v8CZToT9xd1k56vessxrf4wYjlUy0Y +XmT/6T3+3o+Mm+WzgamiTt0vW0qOPtx1Ezmm5OKGPbca7+HY1Ql/noUnCwdZZTk1cyU gpWpYYo8JZbnxlqSM0u/YHKOkFZOWaRTu/EMCJiXE2sGgYmhgwM51kJ9qRczuxSwSjJp wvmLeVIWAxi0tbNhPoOBYmTV2wz68fXqQL4amFOAWQGxDHSymqdOtrRG+uk6muJ3HZYR BF+g== 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=OjC5w0D6m86eUPOQztMeiVjUrZRJXT0Nvedg/Rme+8A=; b=nwgvgLC6S6ZxWs9bpdfwoZ+K8VwsC1rb7UOJ10XVx5WZEb/mV980R2Rh4lg+3TpqWu ltIaeFsW10VPqCqxHBtnEsg8AH7BFizQ0TC028OV6xUCJZAjLkvFnyEz3rXYbOXudwH5 chQ30fqCuqaYeRAjLA6N8ukzOT6BtGLwN+5ataZswbjOiYEBK9fvYaH3F8gjwHLNy3X6 gF/mZaMgZmY3HGcTYkYqYDPTuZ647xxyxH2QT7PyEU5IfJFDkalixJXUtU3UQY2iQk5i GhGjvRoMlU8pwLNTVzdb32aeTLnjdX1a8oZXgmdGKk1qn0fiYV9o2a1Am9h4rR26a7vI aCYg== 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 l8si26715713pgr.345.2018.12.23.08.40.48; Sun, 23 Dec 2018 08:41:03 -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 S1727116AbeLWJeJ (ORCPT + 99 others); Sun, 23 Dec 2018 04:34:09 -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 S1727363AbeLWJeF (ORCPT ); Sun, 23 Dec 2018 04:34:05 -0500 X-IronPort-AV: E=Sophos;i="5.56,386,1539640800"; d="scan'208";a="289991781" 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:55 +0100 From: Julia Lawall To: Jiri Pirko Cc: kernel-janitors@vger.kernel.org, Ido Schimmel , "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 16/20] mlxsw: spectrum: drop useless LIST_HEAD Date: Sun, 23 Dec 2018 09:57:11 +0100 Message-Id: <1545555435-24576-17-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. The uses were removed in 244cd96adb5f ("net_sched: remove list_head from tc_action"), but not the declaration. The semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // @@ identifier x; @@ - LIST_HEAD(x); ... when != x // Fixes: 244cd96adb5f ("net_sched: remove list_head from tc_action") Signed-off-by: Julia Lawall --- Successfully 0-day tested on 151 configurations. drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c index c742a581f0d0..eed1045e4d96 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c @@ -1347,7 +1347,6 @@ static int mlxsw_sp_port_add_cls_matchall(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_port_mall_tc_entry *mall_tc_entry; __be16 protocol = f->common.protocol; const struct tc_action *a; - LIST_HEAD(actions); int err; if (!tcf_exts_has_one_action(f->exts)) {