Message ID | 20220530022523.21402-1-wangxiang@cdjrlc.com |
---|---|
State | New |
Headers | show |
Series | scsi: lpfc: Fix warning in using sizeof | expand |
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))); } /**
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(-)