1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-01-06 07:39:18 +01:00

firmware: scmi: return a right errno for SCMI status code

scmi_to_linux_errno() is set to return an appropriate errno
which corresponds to a given SCMI status code.
But the current implementation always returns the same value.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
This commit is contained in:
AKASHI Takahiro
2023-06-13 10:30:45 +09:00
committed by Tom Rini
parent 497e3a89ba
commit b1d774bb87

View File

@@ -46,7 +46,7 @@ int scmi_to_linux_errno(s32 scmi_code)
for (n = 0; n < ARRAY_SIZE(scmi_linux_errmap); n++)
if (scmi_code == scmi_linux_errmap[n].scmi)
return scmi_linux_errmap[1].errno;
return scmi_linux_errmap[n].errno;
return -EPROTO;
}