linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] scsi: lpfc: Fix warning in using sizeof
@ 2022-05-30  2:25 Xiang wangx
  0 siblings, 0 replies; only message in thread
From: Xiang wangx @ 2022-05-30  2:25 UTC (permalink / raw)
  To: jejb
  Cc: martin.petersen, james.smart, dick.kennedy, linux-scsi,
	linux-kernel, Xiang wangx

Sizeof fc_host_symbolic_name should be sizeof(fc_host_symbolic_name).

Signed-off-by: Xiang wangx <wangxiang@cdjrlc.com>
---
 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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-30  2:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-30  2:25 [PATCH] scsi: lpfc: Fix warning in using sizeof Xiang wangx

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).