diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-05-05 21:52:57 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-05-07 02:16:21 -0400 |
commit | db2a144bedd58b3dcf19950c2f476c58c9f39d18 (patch) | |
tree | 931f1b5a8e6bafe388b317bce02a9fd9af309d38 /drivers/block/xen-blkfront.c | |
parent | a8ca889ed9585894d53fd8919d80cbe8baff09e7 (diff) |
block_device_operations->release() should return void
The value passed is 0 in all but "it can never happen" cases (and those
only in a couple of drivers) *and* it would've been lost on the way
out anyway, even if something tried to pass something meaningful.
Just don't bother.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/block/xen-blkfront.c')
-rw-r--r-- | drivers/block/xen-blkfront.c | 3 |
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 | ||
1620 | static int blkif_release(struct gendisk *disk, fmode_t mode) | 1620 | static 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) | |||
1658 | out: | 1658 | out: |
1659 | bdput(bdev); | 1659 | bdput(bdev); |
1660 | mutex_unlock(&blkfront_mutex); | 1660 | mutex_unlock(&blkfront_mutex); |
1661 | return 0; | ||
1662 | } | 1661 | } |
1663 | 1662 | ||
1664 | static const struct block_device_operations xlvbd_block_fops = | 1663 | static const struct block_device_operations xlvbd_block_fops = |