projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bf625a
)
Drivers: hv: utils: Make use of the helper macro LIST_HEAD()
author
Cai Huoqing
<cai.huoqing@linux.dev>
Wed, 9 Feb 2022 03:22:51 +0000
(11:22 +0800)
committer
Wei Liu
<wei.liu@kernel.org>
Wed, 9 Feb 2022 14:33:21 +0000
(14:33 +0000)
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/20220209032251.37362-1-cai.huoqing@linux.dev
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/hv_utils_transport.c
patch
|
blob
|
history
diff --git
a/drivers/hv/hv_utils_transport.c
b/drivers/hv/hv_utils_transport.c
index eb2833d2b5d0a400685ffa60dcab4059b5d3202a..8328851986430fd94eb0e9632e9c9bf768564de7 100644
(file)
--- a/
drivers/hv/hv_utils_transport.c
+++ b/
drivers/hv/hv_utils_transport.c
@@
-13,7
+13,7
@@
#include "hv_utils_transport.h"
static DEFINE_SPINLOCK(hvt_list_lock);
-static
struct list_head hvt_list = LIST_HEAD_INIT
(hvt_list);
+static
LIST_HEAD
(hvt_list);
static void hvt_reset(struct hvutil_transport *hvt)
{