dm: cleanup cleanup_mapped_device
authorChristoph Hellwig <hch@lst.de>
Wed, 4 Aug 2021 09:41:44 +0000 (11:41 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Aug 2021 17:50:43 +0000 (11:50 -0600)
commit74a2b6ec9380959546d95ecc01a8fe6c7157add9
tree44539808876843654e9d071a8b941802a83d353f
parentd626338735909bc2b2e7cafc332f44ed41cfdeee
dm: cleanup cleanup_mapped_device

md->queue is now always set when md->disk is set, so simplify the
conditionals a bit.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Snitzer <snitzer@redhat.com>
Link: https://lore.kernel.org/r/20210804094147.459763-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/dm.c