From: Cai Huoqing Date: Wed, 9 Feb 2022 03:27:13 +0000 (+0800) Subject: staging: most: video: Make use of the helper macro LIST_HEAD() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d6ef48e595823ef0ba37d78725350ceeeda0cb0a;p=linux.git 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 Link: https://lore.kernel.org/r/20220209032715.38437-1-cai.huoqing@linux.dev Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/most/video/video.c b/drivers/staging/most/video/video.c index b7858e47145fa..ffa97ef21ea50 100644 --- 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)