net/mlx5e: drop useless LIST_HEAD
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 23 Dec 2018 08:56:57 +0000 (09:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Dec 2018 22:22:14 +0000 (14:22 -0800)
commit2534f14a94c1fe48928a4b00a0e241fa7132d00b
treef4725db1a6abdc9b36d2ebe16cc10ef0c7ecd7f8
parent5d1f7354faad4b6210fac9192d0ca4c16b00ae7e
net/mlx5e: drop useless LIST_HEAD

Drop LIST_HEAD where the variable it declares is never used.

These became useless in 244cd96adb5f ("net_sched: remove list_head
from tc_action")

The semantic patch that fixes this problem is as follows:
(http://coccinelle.lip6.fr/)

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

Fixes: 244cd96adb5f ("net_sched: remove list_head from tc_action")
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c