Skip to content

Commit

Permalink
[LAPB] net/lapb/lapb_iface.c: use LIST_HEAD instead of LIST_HEAD_INIT
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
crquan authored and davem330 committed Jan 28, 2008
1 parent 1596c97 commit 14d0e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/lapb/lapb_iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/*
Expand Down

0 comments on commit 14d0e7b

Please sign in to comment.