Commit 14d0e7b74e05a1983f5b607e90bc9bafa5ce9eb3

Authored by Denis Cheng
Committed by David S. Miller
1 parent 1596c97aa8

[LAPB] net/lapb/lapb_iface.c: use LIST_HEAD instead of LIST_HEAD_INIT

single list_head variable initialized with LIST_HEAD_INIT could almost
always can be replaced with LIST_HEAD declaration, this shrinks the code
and looks better.

Signed-off-by: Denis Cheng <crquan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

net/lapb/lapb_iface.c
... ... @@ -39,7 +39,7 @@
39 39 #include <linux/init.h>
40 40 #include <net/lapb.h>
41 41  
42   -static struct list_head lapb_list = LIST_HEAD_INIT(lapb_list);
  42 +static LIST_HEAD(lapb_list);
43 43 static DEFINE_RWLOCK(lapb_list_lock);
44 44  
45 45 /*