Skip to content

Commit

Permalink
scsi: qedi: fix missing return error code check on call to qedi_setup…
Browse files Browse the repository at this point in the history
…_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>
  • Loading branch information
Colin Ian King authored and Martin K. Petersen committed Mar 1, 2017
1 parent 42a70ab commit d1a9ccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/qedi/qedi_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d1a9ccc

Please sign in to comment.