sound: rt5677: Cannot test unsigned for being negative
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Tue, 12 Aug 2025 10:36:53 +0000 (11:36 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 19 Aug 2025 17:25:25 +0000 (11:25 -0600)
commitda938a4254b4cf9d4e7b894a0a30536b0d9266c5
tree5edd5d37380871f704d6fd6dd1b07fd5d043f463
parent544bf0aa599f9afd8ac5224b005edd4b5bb374ed
sound: rt5677: Cannot test unsigned for being negative

In rt5677_bic_or the call to rt5677_i2c_read returns an int so old
should also be an int to receive that value and then be able to test it
for being negative which would indicate an error.

This issue was found by Smatch.

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