]> git.baikalelectronics.ru Git - kernel.git/commitdiff
scsi: lpfc: Remove unneeded variable
authorChangcheng Deng <deng.changcheng@zte.com.cn>
Tue, 19 Apr 2022 06:57:50 +0000 (06:57 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Apr 2022 03:43:20 +0000 (23:43 -0400)
Remove unneeded variable 'rc' used to store return value.

Link: https://lore.kernel.org/r/20220419065750.2573861-1-deng.changcheng@zte.com.cn
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Changcheng Deng <deng.changcheng@zte.com.cn>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_sli.c

index 8bf62697317a2ce70e3ae893a3b8bfc1eef6140a..1b613f630ed53ce0eb7741e568a94c13e49897c2 100644 (file)
@@ -3707,7 +3707,6 @@ lpfc_sli_process_sol_iocb(struct lpfc_hba *phba, struct lpfc_sli_ring *pring,
                          struct lpfc_iocbq *saveq)
 {
        struct lpfc_iocbq *cmdiocbp;
-       int rc = 1;
        unsigned long iflag;
        u32 ulp_command, ulp_status, ulp_word4, ulp_context, iotag;
 
@@ -3847,7 +3846,7 @@ lpfc_sli_process_sol_iocb(struct lpfc_hba *phba, struct lpfc_sli_ring *pring,
                }
        }
 
-       return rc;
+       return 1;
 }
 
 /**