[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220209032547.38075-1-cai.huoqing@linux.dev>
Date: Wed, 9 Feb 2022 11:25:46 +0800
From: Cai Huoqing <cai.huoqing@...ux.dev>
To: cai.huoqing@...ux.dev
Cc: Nilesh Javali <njavali@...vell.com>,
Manish Rangankar <mrangankar@...vell.com>,
GR-QLogic-Storage-Upstream@...vell.com,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] scsi: bnx2i: 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@...ux.dev>
---
drivers/scsi/bnx2i/bnx2i_init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/bnx2i/bnx2i_init.c b/drivers/scsi/bnx2i/bnx2i_init.c
index 2b3f0c10478e..40561fc2823d 100644
--- a/drivers/scsi/bnx2i/bnx2i_init.c
+++ b/drivers/scsi/bnx2i/bnx2i_init.c
@@ -16,7 +16,7 @@
#include "bnx2i.h"
-static struct list_head adapter_list = LIST_HEAD_INIT(adapter_list);
+static LIST_HEAD(adapter_list);
static u32 adapter_count;
#define DRV_MODULE_NAME "bnx2i"
--
2.25.1
Powered by blists - more mailing lists