mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
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>
This commit is contained in:
parent
2f8189beb4
commit
d6ef48e595
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue