* [PATCH] scsi: qla2xxx: Make use of the helper macro LIST_HEAD()
@ 2022-02-09 3:26 Cai Huoqing
0 siblings, 0 replies; only message in thread
From: Cai Huoqing @ 2022-02-09 3:26 UTC (permalink / raw)
To: cai.huoqing
Cc: Nilesh Javali, 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/qla2xxx/qla_os.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index cff5e4a710d1..63e5858b4038 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -6376,7 +6376,7 @@ qla24xx_free_purex_item(struct purex_item *item)
void qla24xx_process_purex_list(struct purex_list *list)
{
- struct list_head head = LIST_HEAD_INIT(head);
+ LIST_HEAD(head);
struct purex_item *item, *next;
ulong flags;
--
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:26 [PATCH] scsi: qla2xxx: 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