mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
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>
This commit is contained in:
parent
20dde50ffe
commit
4044fe5525
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue