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)
commitd1a9ccc4b1374a5a7762031fd8e4e398c68549e6
treefd0e5202fb8bdc915785b6ffc9e6571ce076f268
parent42a70abddd90374518057e989f5b7289b7b535d8
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>
drivers/scsi/qedi/qedi_main.c