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)
commitf0af25a10822ece736b0711a2339731fd0d3140d
treecc9d9f25daa3d50af739c3f36df7aa062b6ecdcd
parent708404c9e9648069d59cb9f3df77e200054f68c7
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