]> git.ipfire.org Git - thirdparty/u-boot.git/commit
i2c: npcm: Fix error detection
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Tue, 21 Oct 2025 16:08:28 +0000 (17:08 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 4 Dec 2025 15:38:17 +0000 (09:38 -0600)
commiteb13583b9de27005703ab085d5ef45fcdbb1d4fb
tree77d478f566282d5dfeedc1f768b568677124befd
parentae4f60801f344aa26e3f2d1ffe6f6227be6f16a2
i2c: npcm: Fix error detection

Testing an unisgned member of a struct to be <= 0 will only detect the
case when it is 0. So correct this error test to a working version that
will behave as expected.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Heiko Schocher <hs@nabladev.com>
drivers/i2c/npcm_i2c.c