Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2827769imu; Sun, 23 Dec 2018 08:41:12 -0800 (PST) X-Google-Smtp-Source: ALg8bN4pVhH2pwO/U2TOSkzpg8ipOlF8x0mMJuZrcyldnJ2aDi0QC8J/wZ+OKHJt+plPJTdDjSEg X-Received: by 2002:a63:d50f:: with SMTP id c15mr9651433pgg.287.1545583272217; Sun, 23 Dec 2018 08:41:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545583272; cv=none; d=google.com; s=arc-20160816; b=XjD5N1j0nWehlyvQICFmARaH1Fb3iCsAfzAYqC0hfwCCfCG9M5ExmiTFIslhJ/w1Zw eMEW0MvZ2xtbbT4C4xkGULi1xXBFWnPza+N7OkPqcj00JgfCpQsaqNn2s6tymbj9H1kv YfQmDLLVWJjowmpkkBfBwVwZfM1uYaZKBLMpwMKsL6sKNhaphL/+WusUkhMZPhssJjYx GIsVuAixU8VFmTPg71H+3GpzmVos1xljbUL7E4vwGn/8J4BrOlvN4GxLnXVZH2xN2U1N P1S7Ylc1wLA6a0F7gtnQkCYyJg59Am5ato7Xmcqv41A9ksM3PMZxl1zTBvst6yiTbUwp n7dQ== 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=YQoCiUrYIYr+am94FfitHngntFNlt6hAi+nNlzWicl8=; b=dhrlNUlcB/DVDP8LkR3PUmxZCYM98KYgrUFAroMOUXF0f0jr5eOF3EyrqZEA6uH+4c Mzc0rnDXerBokKrR0mUUUd95ohfzlGqVCbBB4kcPPRkBzKiX5JR12JW1NJ8tm7Dm376D Sy2eJocfzODNW0n2j0KFdyJZydK+IruIrSnNtA53+fpm7pjL+9Cky26Egd69cERQLm39 gCCjhXenO1W2nLruCpdl2eOMTE4iJAzzAEm+AtPaplTbGkTQJ4+d8yisAwqFJEPud9zo AXrZrKalBzC5l6AKKWYKyp348Af/hBumYg1QFXtxhNE6ibIGVijBDliUZwweTG/wKlCY gDaQ== 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 w11si24596223pgp.161.2018.12.23.08.40.57; Sun, 23 Dec 2018 08:41:12 -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 S1727459AbeLWJeN (ORCPT + 99 others); Sun, 23 Dec 2018 04:34:13 -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 S1727417AbeLWJeJ (ORCPT ); Sun, 23 Dec 2018 04:34:09 -0500 X-IronPort-AV: E=Sophos;i="5.56,386,1539640800"; d="scan'208";a="289991785" 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: Solomon Peachy Cc: kernel-janitors@vger.kernel.org, Kalle Valo , "David S. Miller" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 20/20] cw1200: drop useless LIST_HEAD Date: Sun, 23 Dec 2018 09:57:15 +0100 Message-Id: <1545555435-24576-21-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 has never been used. The semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // @@ identifier x; @@ - LIST_HEAD(x); ... when != x // Fixes: a910e4a94f692 ("cw1200: add driver for the ST-E CW1100 & CW1200 WLAN chipsets") Signed-off-by: Julia Lawall --- Successfully 0-day tested on 151 configurations. drivers/net/wireless/st/cw1200/queue.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/wireless/st/cw1200/queue.c b/drivers/net/wireless/st/cw1200/queue.c index 7c31b63b8258..7895efefa95d 100644 --- a/drivers/net/wireless/st/cw1200/queue.c +++ b/drivers/net/wireless/st/cw1200/queue.c @@ -283,7 +283,6 @@ int cw1200_queue_put(struct cw1200_queue *queue, struct cw1200_txpriv *txpriv) { int ret = 0; - LIST_HEAD(gc_list); struct cw1200_queue_stats *stats = queue->stats; if (txpriv->link_id >= queue->stats->map_capacity)