]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Return NULL rather than a plain 0 integer
authorColin Ian King <colin.king@canonical.com>
Sat, 25 Sep 2021 22:41:13 +0000 (23:41 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 29 Sep 2021 03:21:36 +0000 (23:21 -0400)
commite732e04694e9b6e9d0efd5024789d4cb39c9f0fd
treefd5e565f2743274637a49a6447d5d9787e131bd8
parent224c2f94ea7f5c9601b7bde9bd52b5d0d66b49bb
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>
drivers/scsi/lpfc/lpfc_init.c