]> git.dujemihanovic.xyz Git - u-boot.git/commit
ide: Simplify success condition
authorSimon Glass <sjg@chromium.org>
Tue, 25 Apr 2023 16:54:39 +0000 (10:54 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 27 Apr 2023 17:51:06 +0000 (13:51 -0400)
commit9367e6174aba22cd376e9d2c8fc1260115f44f97
treea87330b224c8242e70d5ebf6a1112bc00ffaaaed
parent6579bb00cf4f072084a02e806b214eed95a9e5bc
ide: Simplify success condition

Change the if() to remove extra brackets and check for the positive case
first, i.e. when a device is found. Exit the loop in that case, with the
retry logic in the 'else' part.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/block/ide.c