summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-09-25 23:41:13 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2021-09-28 23:21:36 -0400
commit5860d9fb5622ecd79913ac981403c612f6c8a2d8 (patch)
treefd5e565f2743274637a49a6447d5d9787e131bd8 /drivers/scsi/lpfc
parent9f80eca441a9e1c4682862e44ad3e7a618a0486f (diff)
downloadlinux-5860d9fb5622ecd79913ac981403c612f6c8a2d8.tar.gz
linux-5860d9fb5622ecd79913ac981403c612f6c8a2d8.tar.bz2
linux-5860d9fb5622ecd79913ac981403c612f6c8a2d8.zip
scsi: lpfc: Return NULL rather than a plain 0 integer
Function lpfc_sli4_perform_vport_cvl() returns a pointer to struct lpfc_nodelist so returning a plain 0 integer isn't good practice. Fix this by returning a NULL instead. Link: https://lore.kernel.org/r/20210925224113.183040-1-colin.king@canonical.com Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/lpfc')
-rw-r--r--drivers/scsi/lpfc/lpfc_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
index ff2a4e387523..0be8c8ab3d94 100644
--- a/drivers/scsi/lpfc/lpfc_init.c
+++ b/drivers/scsi/lpfc/lpfc_init.c
@@ -6564,7 +6564,7 @@ lpfc_sli4_perform_vport_cvl(struct lpfc_vport *vport)
/* Cannot find existing Fabric ndlp, so allocate a new one */
ndlp = lpfc_nlp_init(vport, Fabric_DID);
if (!ndlp)
- return 0;
+ return NULL;
/* Set the node type */
ndlp->nlp_type |= NLP_FABRIC;
/* Put ndlp onto node list */