diff options
author | Denis Cheng | 2007-12-07 09:50:15 +0100 |
---|---|---|
committer | David S. Miller | 2008-01-28 23:56:52 +0100 |
commit | 14d0e7b74e05a1983f5b607e90bc9bafa5ce9eb3 (patch) | |
tree | d461298f7d3c655cf48b060a133501a199e446fa /net/lapb | |
parent | [IPV4] net/ipv4/cipso_ipv4.c: use LIST_HEAD instead of LIST_HEAD_INIT (diff) | |
download | kernel-qcow2-linux-14d0e7b74e05a1983f5b607e90bc9bafa5ce9eb3.tar.gz kernel-qcow2-linux-14d0e7b74e05a1983f5b607e90bc9bafa5ce9eb3.tar.xz kernel-qcow2-linux-14d0e7b74e05a1983f5b607e90bc9bafa5ce9eb3.zip |
[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>
Diffstat (limited to 'net/lapb')
-rw-r--r-- | net/lapb/lapb_iface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/lapb/lapb_iface.c b/net/lapb/lapb_iface.c index a2e7aa63fd8a..2ba1bc4f3c3a 100644 --- a/net/lapb/lapb_iface.c +++ b/net/lapb/lapb_iface.c @@ -39,7 +39,7 @@ #include <linux/init.h> #include <net/lapb.h> -static struct list_head lapb_list = LIST_HEAD_INIT(lapb_list); +static LIST_HEAD(lapb_list); static DEFINE_RWLOCK(lapb_list_lock); /* |