Commit 06605b0d authored by Julia Lawall's avatar Julia Lawall Committed by Kalle Valo

cw1200: drop useless LIST_HEAD

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: a910e4a9 ("cw1200: add driver for the ST-E CW1100 & CW1200 WLAN chipsets")
Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 51c8d241
...@@ -283,7 +283,6 @@ int cw1200_queue_put(struct cw1200_queue *queue, ...@@ -283,7 +283,6 @@ int cw1200_queue_put(struct cw1200_queue *queue,
struct cw1200_txpriv *txpriv) struct cw1200_txpriv *txpriv)
{ {
int ret = 0; int ret = 0;
LIST_HEAD(gc_list);
struct cw1200_queue_stats *stats = queue->stats; struct cw1200_queue_stats *stats = queue->stats;
if (txpriv->link_id >= queue->stats->map_capacity) if (txpriv->link_id >= queue->stats->map_capacity)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment