diff mbox series

[4/4] scsi: lpfc: Delete an unnecessary variable initialisation in lpfc_sli_read_link_ste()

Message ID 98f99041-e089-4253-9195-6a26b986658e@web.de (mailing list archive)
State Rejected
Headers show
Series scsi: lpfc: Adjustments for two function implementations | expand

Commit Message

Markus Elfring Dec. 28, 2023, 5:28 p.m. UTC
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Thu, 28 Dec 2023 18:00:11 +0100

The variable “rgn23_data” will be reassigned by a following statement.
Thus omit the explicit initialisation at the beginning.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 drivers/scsi/lpfc/lpfc_sli.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.43.0
diff mbox series

Patch

diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c
index 8de598c9e03b..1ce5671a7e07 100644
--- a/drivers/scsi/lpfc/lpfc_sli.c
+++ b/drivers/scsi/lpfc/lpfc_sli.c
@@ -20694,7 +20694,7 @@  lpfc_sli4_get_config_region23(struct lpfc_hba *phba, char *rgn23_data)
 void
 lpfc_sli_read_link_ste(struct lpfc_hba *phba)
 {
-	uint8_t *rgn23_data = NULL;
+	uint8_t *rgn23_data;
 	uint32_t if_type, data_size, sub_tlv_len, tlv_offset;
 	uint32_t offset = 0;