summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorCai Huoqing <cai.huoqing@linux.dev>2022-02-09 04:24:21 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-02-25 12:09:56 +0100
commit4044fe5525adb65ce0ce9931b8f23fc3ab1aa758 (patch)
treeda272a740ac63e819e3ac9ff799398042983f1e1 /drivers/misc
parentmisc: sgi-gru: Don't cast parameter in bit operations (diff)
downloadlinux-4044fe5525adb65ce0ce9931b8f23fc3ab1aa758.tar.xz
linux-4044fe5525adb65ce0ce9931b8f23fc3ab1aa758.zip
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>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/ocxl/link.c2
1 files changed, 1 insertions, 1 deletions
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 {