Skip to content

Commit dd54fd4

Browse files
Christoph Hellwigaxboe
authored andcommitted
loop: remove the unused inode variable in loop_configure
Remove the inode variable now that the last user is gone. Fixes: a17ece7 ("loop: regularize upgrading the block size for direct I/O") Reported-by: kernel test robot <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent ba94223 commit dd54fd4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/block/loop.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,6 @@ static int loop_configure(struct loop_device *lo, blk_mode_t mode,
996996
const struct loop_config *config)
997997
{
998998
struct file *file = fget(config->fd);
999-
struct inode *inode;
1000999
struct address_space *mapping;
10011000
int error;
10021001
loff_t size;
@@ -1033,7 +1032,6 @@ static int loop_configure(struct loop_device *lo, blk_mode_t mode,
10331032
goto out_unlock;
10341033

10351034
mapping = file->f_mapping;
1036-
inode = mapping->host;
10371035

10381036
if ((config->info.lo_flags & ~LOOP_CONFIGURE_SETTABLE_FLAGS) != 0) {
10391037
error = -EINVAL;

0 commit comments

Comments
 (0)