2022-05-31 10:23:48

by Xiang wangx

[permalink] [raw]
Subject: [PATCH] scsi: lpfc: Fix warning in using sizeof

Sizeof fc_host_symbolic_name should be sizeof(fc_host_symbolic_name).

Signed-off-by: Xiang wangx <[email protected]>
---
drivers/scsi/lpfc/lpfc_attr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c
index dd4c51b6ef4e..7d0c3aa0ae5e 100644
--- a/drivers/scsi/lpfc/lpfc_attr.c
+++ b/drivers/scsi/lpfc/lpfc_attr.c
@@ -6822,7 +6822,7 @@ lpfc_get_host_symbolic_name(struct Scsi_Host *shost)
struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata;

lpfc_vport_symbolic_node_name(vport, fc_host_symbolic_name(shost),
- sizeof fc_host_symbolic_name(shost));
+ sizeof(fc_host_symbolic_name(shost)));
}

/**
--
2.36.1