Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2f8bdfa8 authored by Hannes Reinecke's avatar Hannes Reinecke Committed by James Bottomley
Browse files

[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: default avatarHannes Reinecke <hare@suse.de>
Acked-by: default avatarKashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent fdc5a97c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;