soc: ti: k3-navss-ringacc: Do not use uninitialised variable
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Tue, 12 Aug 2025 10:13:50 +0000 (11:13 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 19 Aug 2025 17:26:07 +0000 (11:26 -0600)
commit13ca68b104ea75d54e86816ba6d86ef5e70a2668
tree4d34e68d01b2875f148e33a32e4eae9f721dbe08
parentb90927bd0d81096239ff4a48a71c3d9e87ef7209
soc: ti: k3-navss-ringacc: Do not use uninitialised variable

In k3_nav_ringacc_probe_dt there can be no error code returned from
dev_read_u32_default so ret is not assigned to and should not be used.
Remove the use of ret from the dev_err call as it is unitialised.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
drivers/soc/ti/k3-navss-ringacc.c