Commit d1a9ccc4 authored by Colin Ian King's avatar Colin Ian King Committed by Martin K. Petersen

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: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarManish Rangankar <Manish.Rangankar@cavium.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 42a70abd
...@@ -1805,7 +1805,7 @@ static int __qedi_probe(struct pci_dev *pdev, int mode) ...@@ -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_ops->common->update_pf_params(qedi->cdev, &qedi->pf_params);
qedi_setup_int(qedi); rc = qedi_setup_int(qedi);
if (rc) if (rc)
goto stop_iscsi_func; goto stop_iscsi_func;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment