init: cleanup match_dev_by_uuid and match_dev_by_label
authorChristoph Hellwig <hch@lst.de>
Sat, 14 Nov 2020 18:41:48 +0000 (19:41 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Dec 2020 21:53:39 +0000 (14:53 -0700)
commit013b0e96ae2225a649b48a2f8fc4f87429483cb1
tree35180d5e2c0ccea3893a9b93a74b1ca92df8d0a7
parente036bb8e0cdf9dbac3b76fb0a576100eaa81f0be
init: cleanup match_dev_by_uuid and match_dev_by_label

Avoid a totally pointless goto label, and use the same style of
comparism for both helpers.

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>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
init/do_mounts.c