diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 49e6a545eb63fde25bc1984e3b2c165432f984b9..44e18c073c44105d03c1f7e0b9cd9bda229cac0f 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -1641,9 +1641,6 @@ static struct loop_device *loop_alloc(int i) static void loop_free(struct loop_device *lo) { - if (!lo->lo_queue->queue_lock) - lo->lo_queue->queue_lock = &lo->lo_queue->__queue_lock; - blk_cleanup_queue(lo->lo_queue); put_disk(lo->lo_disk); list_del(&lo->lo_list);