From: Denis Cheng Date: Fri, 7 Dec 2007 08:50:15 +0000 (-0800) Subject: [LAPB] net/lapb/lapb_iface.c: use LIST_HEAD instead of LIST_HEAD_INIT X-Git-Tag: v2.6.25-rc1~1162^2~1182 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=14d0e7b74e05a1983f5b607e90bc9bafa5ce9eb3;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: David S. Miller --- diff --git a/net/lapb/lapb_iface.c b/net/lapb/lapb_iface.c index a2e7aa63fd8..2ba1bc4f3c3 100644 --- a/net/lapb/lapb_iface.c +++ b/net/lapb/lapb_iface.c @@ -39,7 +39,7 @@ #include #include -static struct list_head lapb_list = LIST_HEAD_INIT(lapb_list); +static LIST_HEAD(lapb_list); static DEFINE_RWLOCK(lapb_list_lock); /*