projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f8189b
)
staging: most: video: Make use of the helper macro LIST_HEAD()
author
Cai Huoqing
<cai.huoqing@linux.dev>
Wed, 9 Feb 2022 03:27:13 +0000
(11:27 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 15 Feb 2022 16:05:32 +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/20220209032715.38437-1-cai.huoqing@linux.dev
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/video/video.c
patch
|
blob
|
history
diff --git
a/drivers/staging/most/video/video.c
b/drivers/staging/most/video/video.c
index b7858e47145fa1c43d4d2c2034ab717e7bc876b9..ffa97ef21ea5007a3e7db0a0786830e7d391e9e0 100644
(file)
--- a/
drivers/staging/most/video/video.c
+++ b/
drivers/staging/most/video/video.c
@@
-52,7
+52,7
@@
struct comp_fh {
u32 offs;
};
-static
struct list_head video_devices = LIST_HEAD_INIT
(video_devices);
+static
LIST_HEAD
(video_devices);
static DEFINE_SPINLOCK(list_lock);
static inline bool data_ready(struct most_video_dev *mdev)