cw1200: drop useless LIST_HEAD
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 23 Dec 2018 08:57:15 +0000 (09:57 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 10 Jan 2019 11:35:39 +0000 (13:35 +0200)
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/)

// <smpl>
@@
identifier x;
@@
- LIST_HEAD(x);
  ... when != x
// </smpl>

Fixes: a910e4a94f692 ("cw1200: add driver for the ST-E CW1100 & CW1200 WLAN chipsets")
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/st/cw1200/queue.c

index 7c31b63b8258a6db067192f5b677a27fbafdaa43..7895efefa95d3ae95384986eddc2b612e2225e8d 100644 (file)
@@ -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)