* [PATCH] scsi: bnx2i: Make use of the helper macro LIST_HEAD()
@ 2022-02-09 3:25 Cai Huoqing
0 siblings, 0 replies; only message in thread
From: Cai Huoqing @ 2022-02-09 3:25 UTC (permalink / raw)
To: cai.huoqing
Cc: Nilesh Javali, Manish Rangankar, GR-QLogic-Storage-Upstream,
James E.J. Bottomley, Martin K. Petersen, linux-scsi,
linux-kernel
Replace "struct list_head head = LIST_HEAD_INIT(head)" with
"LIST_HEAD(head)" to simplify the code.
Signed-off-by: Cai Huoqing <cai.huoqing@linux.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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-02-09 4:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-09 3:25 [PATCH] scsi: bnx2i: Make use of the helper macro LIST_HEAD() Cai Huoqing
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox