scsi: qedi: fix missing return error code check on call to qedi_setup_int

The call to qedi_setup_int is not updating the return code rc yet rc is
being checked for an error. Fix this by assigning rc to the return code
from the call to qedi_setup_int.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Manish Rangankar <Manish.Rangankar@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
Colin Ian King 2017-02-28 11:02:48 +00:00 committed by Martin K. Petersen
parent 42a70abddd
commit d1a9ccc4b1

View File

@ -1805,7 +1805,7 @@ static int __qedi_probe(struct pci_dev *pdev, int mode)
*/
qedi_ops->common->update_pf_params(qedi->cdev, &qedi->pf_params);
qedi_setup_int(qedi);
rc = qedi_setup_int(qedi);
if (rc)
goto stop_iscsi_func;