]> git.baikalelectronics.ru Git - uboot.git/commit
ide: Change the retries variable
authorSimon Glass <sjg@chromium.org>
Tue, 25 Apr 2023 16:54:37 +0000 (10:54 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 27 Apr 2023 17:51:06 +0000 (13:51 -0400)
commit835e25ea2708d915fc79d1e673b94361d4565e33
tree2d43b7c43791f82313c05cd4698bd2442771a1c1
parent6326d564260b85957e2a34b4044e46be3c7c0497
ide: Change the retries variable

Use a 'tries' variable which starts at the number of tries we want to do,
rather than a 'retries' one that stops at either 1 or 2. This will make it
easier to refactor the code to avoid the horrible #ifdefs

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