aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-05-05 21:52:57 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-05-07 02:16:21 -0400
commitdb2a144bedd58b3dcf19950c2f476c58c9f39d18 (patch)
tree931f1b5a8e6bafe388b317bce02a9fd9af309d38 /drivers/mtd
parenta8ca889ed9585894d53fd8919d80cbe8baff09e7 (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/mtd')
-rw-r--r--drivers/mtd/mtd_blkdevs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c
index 65d7e7e2fb1f..5073cbc796d8 100644
--- a/drivers/mtd/mtd_blkdevs.c
+++ b/drivers/mtd/mtd_blkdevs.c
@@ -237,12 +237,12 @@ error_put:
237 return ret; 237 return ret;
238} 238}
239 239
240static int blktrans_release(struct gendisk *disk, fmode_t mode) 240static void blktrans_release(struct gendisk *disk, fmode_t mode)
241{ 241{
242 struct mtd_blktrans_dev *dev = blktrans_dev_get(disk); 242 struct mtd_blktrans_dev *dev = blktrans_dev_get(disk);
243 243
244 if (!dev) 244 if (!dev)
245 return 0; 245 return;
246 246
247 mutex_lock(&dev->lock); 247 mutex_lock(&dev->lock);
248 248
@@ -260,7 +260,6 @@ static int blktrans_release(struct gendisk *disk, fmode_t mode)
260unlock: 260unlock:
261 mutex_unlock(&dev->lock); 261 mutex_unlock(&dev->lock);
262 blktrans_dev_put(dev); 262 blktrans_dev_put(dev);
263 return 0;
264} 263}
265 264
266static int blktrans_getgeo(struct block_device *bdev, struct hd_geometry *geo) 265static int blktrans_getgeo(struct block_device *bdev, struct hd_geometry *geo)