]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: drop useless LIST_HEAD
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 23 Dec 2018 08:57:14 +0000 (09:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Dec 2018 22:22:14 +0000 (14:22 -0800)
commit6c21c761f56d1c68bd8694ce34d6e766bf31c3dc
tree09062adbeab460b8a3da9f835622f74e4fae446f
parent225f1ce167b885fa32f5bf45081f597d67f85f99
net/mlx4_core: 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: 7049dd69bb41 ("mlx4_core: resource tracking for HCA resources used by guests")
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c