]> git.ipfire.org Git - thirdparty/u-boot.git/commit
timer: imx-gpt: Fix error detection
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Tue, 21 Oct 2025 16:08:30 +0000 (17:08 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 4 Dec 2025 15:38:17 +0000 (09:38 -0600)
commitce219307a21fe7166b13542ba923ee09aef7f2f5
tree69f58de3e6d067852a9f757cc84abccd26215425
parent40ad377c1619eb9b83d088a96f40b86a907c8c19
timer: imx-gpt: Fix error detection

Testing an unisgned ivariable 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>
drivers/timer/imx-gpt-timer.c