[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>
This commit is contained in:
parent
fdc5a97cd8
commit
2f8bdfa84a
1 changed files with 1 additions and 1 deletions
|
@ -726,7 +726,7 @@ megasas_get_ld_map_info(struct megasas_instance *instance)
|
||||||
|
|
||||||
if (!fusion) {
|
if (!fusion) {
|
||||||
megasas_return_cmd(instance, cmd);
|
megasas_return_cmd(instance, cmd);
|
||||||
return 1;
|
return -ENXIO;
|
||||||
}
|
}
|
||||||
|
|
||||||
dcmd = &cmd->frame->dcmd;
|
dcmd = &cmd->frame->dcmd;
|
||||||
|
|
Loading…
Add table
Reference in a new issue