mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 18:37:58 -04:00
staging: most: net: Make use of the helper macro LIST_HEAD()
Replace "struct list_head head = LIST_HEAD_INIT(head)" with "LIST_HEAD(head)" to simplify the code. Signed-off-by: Cai Huoqing <cai.huoqing@linux.dev> Link: https://lore.kernel.org/r/20220209032645.38305-1-cai.huoqing@linux.dev Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d6ef48e595
commit
b7b3c35e87
@@ -67,7 +67,7 @@ struct net_dev_context {
|
||||
struct list_head list;
|
||||
};
|
||||
|
||||
static struct list_head net_devices = LIST_HEAD_INIT(net_devices);
|
||||
static LIST_HEAD(net_devices);
|
||||
static DEFINE_MUTEX(probe_disc_mt); /* ch->linked = true, most_nd_open */
|
||||
static DEFINE_SPINLOCK(list_lock); /* list_head, ch->linked = false, dev_hold */
|
||||
static struct most_component comp;
|
||||
|
||||
Reference in New Issue
Block a user