projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6ef48e
)
staging: most: net: Make use of the helper macro LIST_HEAD()
author
Cai Huoqing
<cai.huoqing@linux.dev>
Wed, 9 Feb 2022 03:26:43 +0000
(11:26 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 15 Feb 2022 16:05:34 +0000
(17:05 +0100)
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>
drivers/staging/most/net/net.c
patch
|
blob
|
history
diff --git
a/drivers/staging/most/net/net.c
b/drivers/staging/most/net/net.c
index 47039f0d262f774508157adf274b629258da6f85..1d1fe8bff7ee4b37842bd0ef7eb7b217e99ee556 100644
(file)
--- a/
drivers/staging/most/net/net.c
+++ b/
drivers/staging/most/net/net.c
@@
-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;