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 the unneeded result variable

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

Link: https://lore.kernel.org/r/20220824075017.221244-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
7fd080e1 04144412

+1 -3
+1 -3
drivers/scsi/lpfc/lpfc_sli.c
··· 10504 10504 __lpfc_sli_issue_fcp_io_s4(struct lpfc_hba *phba, uint32_t ring_number, 10505 10505 struct lpfc_iocbq *piocb, uint32_t flag) 10506 10506 { 10507 - int rc; 10508 10507 struct lpfc_io_buf *lpfc_cmd = piocb->io_buf; 10509 10508 10510 10509 lpfc_prep_embed_io(phba, lpfc_cmd); 10511 - rc = lpfc_sli4_issue_wqe(phba, lpfc_cmd->hdwq, piocb); 10512 - return rc; 10510 + return lpfc_sli4_issue_wqe(phba, lpfc_cmd->hdwq, piocb); 10513 10511 } 10514 10512 10515 10513 void