diff options
author | Hannes Reinecke <hare@suse.de> | 2017-06-08 13:46:44 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-06-08 08:39:58 -0600 |
commit | 51001b7da364a24ed2464f3c22179efdc6b3a960 (patch) | |
tree | e370cb442a5704623c294f0335033a55272ecf0e /drivers/block | |
parent | 30181faae37fa80d3aa73672e5df5f2a5b8dea0a (diff) | |
download | linux-51001b7da364a24ed2464f3c22179efdc6b3a960.tar.bz2 |
loop: Remove unused 'bdev' argument from loop_set_capacity
Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/loop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 28d932906f24..fc706adff6a4 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -1303,7 +1303,7 @@ loop_get_status64(struct loop_device *lo, struct loop_info64 __user *arg) { return err; } -static int loop_set_capacity(struct loop_device *lo, struct block_device *bdev) +static int loop_set_capacity(struct loop_device *lo) { if (unlikely(lo->lo_state != Lo_bound)) return -ENXIO; @@ -1366,7 +1366,7 @@ static int lo_ioctl(struct block_device *bdev, fmode_t mode, case LOOP_SET_CAPACITY: err = -EPERM; if ((mode & FMODE_WRITE) || capable(CAP_SYS_ADMIN)) - err = loop_set_capacity(lo, bdev); + err = loop_set_capacity(lo); break; case LOOP_SET_DIRECT_IO: err = -EPERM; |