scsi: qedi: fix missing return error code check on call to qedi_setup_int
authorColin Ian King <colin.king@canonical.com>
Tue, 28 Feb 2017 11:02:48 +0000 (11:02 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 1 Mar 2017 02:55:24 +0000 (21:55 -0500)
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>
drivers/scsi/qedi/qedi_main.c

index 5eda21d903e93dfc96702552d2de9deb7f01c734..8e3d92807cb8033acea1bc3c9e990b05f521f8a8 100644 (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;