aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/xen-blkfront.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/xen-blkfront.c')
-rw-r--r--drivers/block/xen-blkfront.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c
index a894f88762d8..d89ef86220f4 100644
--- a/drivers/block/xen-blkfront.c
+++ b/drivers/block/xen-blkfront.c
@@ -1617,7 +1617,7 @@ out:
1617 return err; 1617 return err;
1618} 1618}
1619 1619
1620static int blkif_release(struct gendisk *disk, fmode_t mode) 1620static void blkif_release(struct gendisk *disk, fmode_t mode)
1621{ 1621{
1622 struct blkfront_info *info = disk->private_data; 1622 struct blkfront_info *info = disk->private_data;
1623 struct block_device *bdev; 1623 struct block_device *bdev;
@@ -1658,7 +1658,6 @@ static int blkif_release(struct gendisk *disk, fmode_t mode)
1658out: 1658out:
1659 bdput(bdev); 1659 bdput(bdev);
1660 mutex_unlock(&blkfront_mutex); 1660 mutex_unlock(&blkfront_mutex);
1661 return 0;
1662} 1661}
1663 1662
1664static const struct block_device_operations xlvbd_block_fops = 1663static const struct block_device_operations xlvbd_block_fops =