mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 10:01:43 +00:00
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>
This commit is contained in:
parent
b64a71a013
commit
f4354a94e2
@ -690,7 +690,6 @@ static int loop_change_fd(struct loop_device *lo, struct block_device *bdev,
|
|||||||
unsigned int arg)
|
unsigned int arg)
|
||||||
{
|
{
|
||||||
struct file *file, *old_file;
|
struct file *file, *old_file;
|
||||||
struct inode *inode;
|
|
||||||
int error;
|
int error;
|
||||||
|
|
||||||
error = -ENXIO;
|
error = -ENXIO;
|
||||||
@ -711,7 +710,6 @@ static int loop_change_fd(struct loop_device *lo, struct block_device *bdev,
|
|||||||
if (error)
|
if (error)
|
||||||
goto out_putf;
|
goto out_putf;
|
||||||
|
|
||||||
inode = file->f_mapping->host;
|
|
||||||
old_file = lo->lo_backing_file;
|
old_file = lo->lo_backing_file;
|
||||||
|
|
||||||
error = -EINVAL;
|
error = -EINVAL;
|
||||||
|
Loading…
Reference in New Issue
Block a user