Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scsi: lpfc: Remove unneeded result variable

Return the value from lpfc_issue_reg_vfi() directly instead of storing it
in another redundant variable.

Link: https://lore.kernel.org/r/20220824075123.221316-1-ye.xingchen@zte.com.cn
Reported-by: Zeal Robot <zealci@zte.com.cn>
Reviewed-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

ye xingchen and committed by
Martin K. Petersen
de05e484 7fd080e1

+1 -4
+1 -4
drivers/scsi/lpfc/lpfc_bsg.c
··· 1977 1977 static int 1978 1978 lpfc_sli4_diag_fcport_reg_setup(struct lpfc_hba *phba) 1979 1979 { 1980 - int rc; 1981 - 1982 1980 if (phba->pport->fc_flag & FC_VFI_REGISTERED) { 1983 1981 lpfc_printf_log(phba, KERN_WARNING, LOG_LIBDFC, 1984 1982 "3136 Port still had vfi registered: " ··· 1986 1988 phba->vpi_ids[phba->pport->vpi]); 1987 1989 return -EINVAL; 1988 1990 } 1989 - rc = lpfc_issue_reg_vfi(phba->pport); 1990 - return rc; 1991 + return lpfc_issue_reg_vfi(phba->pport); 1991 1992 } 1992 1993 1993 1994 /**