Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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)