Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: most: video: 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/20220209032715.38437-1-cai.huoqing@linux.dev
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Cai Huoqing and committed by
Greg Kroah-Hartman
d6ef48e5 2f8189be

+1 -1
+1 -1
drivers/staging/most/video/video.c
··· 52 52 u32 offs; 53 53 }; 54 54 55 - static struct list_head video_devices = LIST_HEAD_INIT(video_devices); 55 + static LIST_HEAD(video_devices); 56 56 static DEFINE_SPINLOCK(list_lock); 57 57 58 58 static inline bool data_ready(struct most_video_dev *mdev)