[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
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue