Skip to contentSkip to conversation

scsi: qla2xxx: Make use of the helper macro LIST_HEAD()

PATCH New Cai Huoqing 1 participant 1 message Feb 9, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/scsi/qla2xxx/qla_os.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/qla2xxx/qla_os.c +1 -1
index cff5e4a710d1..63e5858b4038 100644
@@ -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;
 
Signature · 1 line
2.25.1