[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220209032614.38190-1-cai.huoqing@linux.dev>
Date: Wed, 9 Feb 2022 11:26:14 +0800
From: Cai Huoqing <cai.huoqing@...ux.dev>
To: cai.huoqing@...ux.dev
Cc: Nilesh Javali <njavali@...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: qla2xxx: 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/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
Powered by blists - more mailing lists