]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: mpc8xxx: Simplify logic a bit
authorMario Six <mario.six@gdsys.cc>
Sun, 28 Apr 2019 20:28:45 +0000 (01:58 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 10 Jun 2019 12:29:48 +0000 (17:59 +0530)
commite4da4c2e0e3f4686c104e45a1967587423f04e04
tree0ee065172cf1b28fed813041c2b0df45365d25ad
parent6409c6103a869271a0a2c109f5262c94a0609add
spi: mpc8xxx: Simplify logic a bit

We do nothing in the loop if the "not empty" event was not detected. To
simplify the logic, check if this is the case, and skip the execution of
the loop early to reduce the nesting level and flag checking.

Signed-off-by: Mario Six <mario.six@gdsys.cc>
Acked-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/spi/mpc8xxx_spi.c