[SCSI] megaraid_sas_fusion: Return correct error value in megasas_get_ld_map_info()
authorHannes Reinecke <hare@suse.de>
Thu, 16 Jan 2014 10:25:35 +0000 (11:25 +0100)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 15 Mar 2014 17:19:17 +0000 (10:19 -0700)
When no HBA is found we should be returning '-ENXIO' to be consistent
with the other return values.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Acked-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/megaraid/megaraid_sas_fusion.c

index 9a98bfccc42d76832458c04bd2250cbb40e4b559..357c6c65970c67aa8f52255c6ea1d12cfc1cb49d 100644 (file)
@@ -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;