sound: maxim_codec: Fix coding mistake
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Tue, 12 Aug 2025 10:26:06 +0000 (11:26 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 21 Aug 2025 16:02:40 +0000 (10:02 -0600)
commit2b751d42c35c36f7e3739d7bc7064f014e1263c7
tree4548cddbc629b1aaa7dbe36431f850f2b6c1af25
parentb436af06419adee8e63f4ee4482fba561831d25d
sound: maxim_codec: Fix coding mistake

In maxim_i2c_read the code mistakenly just returned the return value
from dm_i2c_read leaving the following code unreachable. Instead assign
ret to be the return value from dm_i2c_read so that the following code
can operate as expected.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
drivers/sound/maxim_codec.c