nbd: remove nbd_del_disk
authorChristoph Hellwig <hch@lst.de>
Wed, 11 Aug 2021 12:44:25 +0000 (14:44 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Aug 2021 20:17:36 +0000 (14:17 -0600)
commit327b501b1d94342fe17a1b6b1a40746e57ddd472
tree30bf3a724b0e50d21c354d89b5fc4872851f5809
parent3f74e0645c52a08f640380c9c46f9a3a172b9389
nbd: remove nbd_del_disk

Fold nbd_del_disk and remove the pointless NULL check on ->disk given
that it is always set for a successfully allocated nbd_device structure.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210811124428.2368491-4-hch@lst.de
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/nbd.c