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

ocxl: 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.

Acked-by: Frederic Barrat <fbarrat@linux.ibm.com>
Acked-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Cai Huoqing <cai.huoqing@linux.dev>
Link: https://lore.kernel.org/r/20220209032421.37725-1-cai.huoqing@linux.dev
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Cai Huoqing and committed by
Greg Kroah-Hartman
4044fe55 20dde50f

+1 -1
+1 -1
drivers/misc/ocxl/link.c
··· 94 94 struct spa *spa; 95 95 void *platform_data; 96 96 }; 97 - static struct list_head links_list = LIST_HEAD_INIT(links_list); 97 + static LIST_HEAD(links_list); 98 98 static DEFINE_MUTEX(links_list_lock); 99 99 100 100 enum xsl_response {