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)
commit2a165956ac804ebd825ba9eaf4fe26c9bbfb8925
tree2d43b7c43791f82313c05cd4698bd2442771a1c1
parent1b33fd83179c8f09b79930c9ffca6e8b9dfa37cf
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