commit | 911adb33a4f9358003e3f5f5aacb3bbf6d3bf979 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Tue Apr 25 10:54:38 2023 -0600 |
committer | Tom Rini <trini@konsulko.com> | Thu Apr 27 13:51:06 2023 -0400 |
tree | a2e6e8e454b8f11d54735f51937ddcfa9ccc105d | |
parent | badff8b879b3fa4e3a848347f793c5d477b15c29 [diff] |
ide: Refactor confusing loop code This code is hard to follow as it uses #ifdef in a strange way. Adjust it to avoid the preprocessor. Drop the special return for the non-ATAPI case since we can rely on tries becoming 0 and exiting the loop. Signed-off-by: Simon Glass <sjg@chromium.org>