md: simplify md_setup_drive
authorChristoph Hellwig <hch@lst.de>
Sun, 7 Jun 2020 14:56:05 +0000 (16:56 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 16 Jul 2020 13:35:28 +0000 (15:35 +0200)
commitd1100488c3ce11b853785cf15ee4c19bfab4c842
tree35e19639c51f9116946204dfe4568f4e282119da
parent1a6a050620e496abf42749a2e1d3882645cc053f
md: simplify md_setup_drive

Move the loop over the possible arrays into the caller to remove a level
of indentation for the whole function.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: NeilBrown <neilb@suse.de>
Acked-by: Song Liu <song@kernel.org>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/md-autodetect.c