diff options
author | Hannes Reinecke <hare@suse.de> | 2014-01-16 05:25:35 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2014-03-15 13:19:17 -0400 |
commit | 2f8bdfa84a0b814ef66701be1e5dbc88433676e1 (patch) | |
tree | 9f7fe68f585c8f675902f50359f627cd32eca73c /drivers/scsi/megaraid | |
parent | fdc5a97cd8bde59b4c94d0b7ef7f11b163e34246 (diff) |
[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 <hare@suse.de>
Acked-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/megaraid')
-rw-r--r-- | drivers/scsi/megaraid/megaraid_sas_fusion.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
726 | 726 | ||
727 | if (!fusion) { | 727 | if (!fusion) { |
728 | megasas_return_cmd(instance, cmd); | 728 | megasas_return_cmd(instance, cmd); |
729 | return 1; | 729 | return -ENXIO; |
730 | } | 730 | } |
731 | 731 | ||
732 | dcmd = &cmd->frame->dcmd; | 732 | dcmd = &cmd->frame->dcmd; |