]> git.baikalelectronics.ru Git - uboot.git/commit
ide: Combine the two loops in ide_probe()
authorSimon Glass <sjg@chromium.org>
Tue, 25 Apr 2023 16:54:46 +0000 (10:54 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 27 Apr 2023 17:51:06 +0000 (13:51 -0400)
commit6b6de5727001ff3b1f4c538e8ad4db23e56677f8
treecc9d9f25daa3d50af739c3f36df7aa062b6ecdcd
parent3d4928d8390482df3873922fe7e9bf2a0dd169d8
ide: Combine the two loops in ide_probe()

The two loops in this function operate on the same ide_dev_desc[] array.
Combine them to reduce duplication.

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