]> git.ipfire.org Git - thirdparty/u-boot.git/commit
mtd: rawnand: denali: Remove always true test
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Fri, 1 Aug 2025 09:54:05 +0000 (10:54 +0100)
committerMichael Trimarchi <michael@amarulasolutions.com>
Sun, 3 Aug 2025 08:22:04 +0000 (10:22 +0200)
commit2756de5213a1a88fae236d7be217c882b5daef9f
tree601cd540c8aebb390019cd2c236b059de8ed544b
parentebf8aaf7afdeb306b0fb85be2226a00aef18162f
mtd: rawnand: denali: Remove always true test

In denali_wait_for_irq the code will either return from inside the while
loop or exit with time_left being 0. The following test for time_left
being 0 is guranteed to be true so remove the test and the following
unreachable code.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
drivers/mtd/nand/raw/denali.c