init: refactor devt_from_partuuid
authorChristoph Hellwig <hch@lst.de>
Sat, 14 Nov 2020 18:35:28 +0000 (19:35 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Dec 2020 21:53:39 +0000 (14:53 -0700)
commite036bb8e0cdf9dbac3b76fb0a576100eaa81f0be
treeda59b9eb5efde0b3c805e245e905ab3e929c1fb0
parentc2637e80a09e0d6c698d2771d7230f59c2138122
init: refactor devt_from_partuuid

The code in devt_from_partuuid is very convoluted.  Refactor a bit by
sanitizing the goto and variable name usage.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
init/do_mounts.c