mmc: iproc_sdhci: Cannot test unsigned variable for negative
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Wed, 30 Jul 2025 16:52:56 +0000 (17:52 +0100)
committerPeng Fan <peng.fan@nxp.com>
Mon, 1 Sep 2025 02:33:09 +0000 (10:33 +0800)
commit95994d4e5996610c8205597b2849b48eaaf2baff
treedf8cc845748fa26072a899629172f3f727a8a3da
parentad197b31b3f88d53c349995d8bbaeba4b18b8f2b
mmc: iproc_sdhci: Cannot test unsigned variable for negative

In sdhci_iproc_execute_tuning the variable tuning_loop_counter is
unsigned and therefore will always fail the test for it being less than
0. Fix this by changing the variable type to be s8.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/mmc/iproc_sdhci.c