aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/virtio_blk.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c
index fb283af38023..7e83b6c6e3d6 100644
--- a/drivers/block/virtio_blk.c
+++ b/drivers/block/virtio_blk.c
@@ -289,7 +289,6 @@ out:
289static void virtblk_remove(struct virtio_device *vdev) 289static void virtblk_remove(struct virtio_device *vdev)
290{ 290{
291 struct virtio_blk *vblk = vdev->priv; 291 struct virtio_blk *vblk = vdev->priv;
292 int major = vblk->disk->major;
293 292
294 /* Nothing should be pending. */ 293 /* Nothing should be pending. */
295 BUG_ON(!list_empty(&vblk->reqs)); 294 BUG_ON(!list_empty(&vblk->reqs));
@@ -299,7 +298,6 @@ static void virtblk_remove(struct virtio_device *vdev)
299 298
300 blk_cleanup_queue(vblk->disk->queue); 299 blk_cleanup_queue(vblk->disk->queue);
301 put_disk(vblk->disk); 300 put_disk(vblk->disk);
302 unregister_blkdev(major, "virtblk");
303 mempool_destroy(vblk->pool); 301 mempool_destroy(vblk->pool);
304 vdev->config->del_vq(vblk->vq); 302 vdev->config->del_vq(vblk->vq);
305 kfree(vblk); 303 kfree(vblk);