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>
This commit is contained in:
parent
a8ca889ed9
commit
db2a144bed
37 changed files with 62 additions and 121 deletions
|
@ -673,7 +673,7 @@ static int floppy_unlocked_open(struct block_device *bdev, fmode_t mode)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int floppy_release(struct gendisk *disk, fmode_t mode)
|
||||
static void floppy_release(struct gendisk *disk, fmode_t mode)
|
||||
{
|
||||
struct floppy_state *fs = disk->private_data;
|
||||
struct swim __iomem *base = fs->swd->base;
|
||||
|
@ -687,8 +687,6 @@ static int floppy_release(struct gendisk *disk, fmode_t mode)
|
|||
if (fs->ref_count == 0)
|
||||
swim_motor(base, OFF);
|
||||
mutex_unlock(&swim_mutex);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int floppy_ioctl(struct block_device *bdev, fmode_t mode,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue