nvme: multipath: round-robin: eliminate "fallback" variable
authorMartin Wilck <mwilck@suse.com>
Thu, 6 Aug 2020 13:19:32 +0000 (15:19 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 21 Aug 2020 23:14:27 +0000 (17:14 -0600)
commite398863b75af24103cee69cc8ee8bf4bc9c8913e
tree2b278284b4d60afe0a8fc5c1ae4c6e8354a5883a
parent93eb0381e13d249a18ed4aae203291ff977e7ffb
nvme: multipath: round-robin: eliminate "fallback" variable

If we find an optimized path, we quit the loop immediately. Thus we can use
just one variable for the next path, slighly simplifying the code.

Signed-off-by: Martin Wilck <mwilck@suse.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/multipath.c