From: Hannes Reinecke Date: Thu, 16 Jan 2014 10:25:35 +0000 (+0100) Subject: [SCSI] megaraid_sas_fusion: Return correct error value in megasas_get_ld_map_info() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2f8bdfa84a0b814ef66701be1e5dbc88433676e1;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [SCSI] megaraid_sas_fusion: Return correct error value in megasas_get_ld_map_info() When no HBA is found we should be returning '-ENXIO' to be consistent with the other return values. Signed-off-by: Hannes Reinecke Acked-by: Kashyap Desai Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c index 9a98bfccc42d..357c6c65970c 100644 --- a/drivers/scsi/megaraid/megaraid_sas_fusion.c +++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c @@ -726,7 +726,7 @@ megasas_get_ld_map_info(struct megasas_instance *instance) if (!fusion) { megasas_return_cmd(instance, cmd); - return 1; + return -ENXIO; } dcmd = &cmd->frame->dcmd;