Skip to content

Commit

Permalink
[SCSI] megaraid_sas_fusion: Return correct error value in megasas_get…
Browse files Browse the repository at this point in the history
…_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>
  • Loading branch information
Hannes Reinecke authored and James Bottomley committed Mar 15, 2014
1 parent fdc5a97 commit 2f8bdfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/megaraid/megaraid_sas_fusion.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2f8bdfa

Please sign in to comment.