commit | cd9eecdc699a7736e26847b2ce2e7a050e6b45f4 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Tue Apr 25 10:54:39 2023 -0600 |
committer | Tom Rini <trini@konsulko.com> | Thu Apr 27 13:51:06 2023 -0400 |
tree | a87330b224c8242e70d5ebf6a1112bc00ffaaaed | |
parent | 911adb33a4f9358003e3f5f5aacb3bbf6d3bf979 [diff] |
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>