mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 07:30:54 +07:00
[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>
This commit is contained in:
parent
1596c97aa8
commit
14d0e7b74e
@ -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);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user