]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
loop: remove the unused inode variable in loop_configure
authorChristoph Hellwig <hch@lst.de>
Fri, 5 Jul 2024 05:31:14 +0000 (07:31 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 5 Jul 2024 06:27:56 +0000 (00:27 -0600)
Remove the inode variable now that the last user is gone.

Fixes: a17ece76bcfe ("loop: regularize upgrading the block size for direct I/O")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20240705053114.2042976-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c

index 4f0d96876b1f5d62c05aae6d2570af55937d4a99..a6f2d63678988b059a0f10240d97d7c344c42569 100644 (file)
@@ -996,7 +996,6 @@ static int loop_configure(struct loop_device *lo, blk_mode_t mode,
                          const struct loop_config *config)
 {
        struct file *file = fget(config->fd);
-       struct inode *inode;
        struct address_space *mapping;
        int error;
        loff_t size;
@@ -1033,7 +1032,6 @@ static int loop_configure(struct loop_device *lo, blk_mode_t mode,
                goto out_unlock;
 
        mapping = file->f_mapping;
-       inode = mapping->host;
 
        if ((config->info.lo_flags & ~LOOP_CONFIGURE_SETTABLE_FLAGS) != 0) {
                error = -EINVAL;