From: Cai Huoqing Date: Wed, 9 Feb 2022 03:24:21 +0000 (+0800) Subject: ocxl: Make use of the helper macro LIST_HEAD() X-Git-Tag: v5.18-rc1~83^2~77 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=4044fe5525adb65ce0ce9931b8f23fc3ab1aa758;p=linux-block.git 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 Acked-by: Andrew Donnellan Signed-off-by: Cai Huoqing Link: https://lore.kernel.org/r/20220209032421.37725-1-cai.huoqing@linux.dev Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/misc/ocxl/link.c b/drivers/misc/ocxl/link.c index ab039c115381..9670d02c927f 100644 --- a/drivers/misc/ocxl/link.c +++ b/drivers/misc/ocxl/link.c @@ -94,7 +94,7 @@ struct ocxl_link { struct spa *spa; void *platform_data; }; -static struct list_head links_list = LIST_HEAD_INIT(links_list); +static LIST_HEAD(links_list); static DEFINE_MUTEX(links_list_lock); enum xsl_response {