diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-07-02 08:47:06 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-07-09 09:07:53 -0600 |
commit | f4354a94e2097fe87a14d47ff502754bb547029a (patch) | |
tree | cc74402da2b06d0f76ef42094e6db1a05faabfaf /drivers/block/loop.c | |
parent | b64a71a0130dd2a88b0fc36a3c0a4882f47813e8 (diff) | |
download | lwn-f4354a94e2097fe87a14d47ff502754bb547029a.tar.gz lwn-f4354a94e2097fe87a14d47ff502754bb547029a.zip |
loop: remove redundant pointer inode
Pointer inode is being assigned but is never used hence it is redundant
and can be removed.
Cleans up clang warning:
warning: variable 'inode' set but not used [-Wunused-but-set-variable]
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/loop.c')
-rw-r--r-- | drivers/block/loop.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 4cb1d1be3cfb..bae472646e4a 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -690,7 +690,6 @@ static int loop_change_fd(struct loop_device *lo, struct block_device *bdev, unsigned int arg) { struct file *file, *old_file; - struct inode *inode; int error; error = -ENXIO; @@ -711,7 +710,6 @@ static int loop_change_fd(struct loop_device *lo, struct block_device *bdev, if (error) goto out_putf; - inode = file->f_mapping->host; old_file = lo->lo_backing_file; error = -EINVAL; |