Skip to content

Commit 2f8bdfa

Browse files
hreineckeJames Bottomley
authored andcommitted
[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>
1 parent fdc5a97 commit 2f8bdfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/megaraid/megaraid_sas_fusion.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ megasas_get_ld_map_info(struct megasas_instance *instance)
726726

727727
if (!fusion) {
728728
megasas_return_cmd(instance, cmd);
729-
return 1;
729+
return -ENXIO;
730730
}
731731

732732
dcmd = &cmd->frame->dcmd;

0 commit comments

Comments
 (0)