soc: ti: k3-socinfo: Avoid overriding return value
authorNeha Malcom Francis <n-francis@ti.com>
Mon, 16 Oct 2023 10:16:07 +0000 (15:46 +0530)
committerNishanth Menon <nm@ti.com>
Mon, 16 Oct 2023 16:38:17 +0000 (11:38 -0500)
commit3aeb0d3694e16b5066db82aa1152884f2e6aace0
treef9564cd6673fa836d5cd0a7ef7d370ef34efd8b9
parent8dec342ead710dace27dc82096144bf7a1011827
soc: ti: k3-socinfo: Avoid overriding return value

Avoid overriding the return value and make sure the right error code
is reflected. If the part is none of the identified list present in
k3_soc_ids[], return -ENODEV.

Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
Link: https://lore.kernel.org/r/20231016101608.993921-3-n-francis@ti.com
Signed-off-by: Nishanth Menon <nm@ti.com>
drivers/soc/ti/k3-socinfo.c