Skip to contentSkip to conversation

loop: remove the unused inode variable in loop_configure

PATCH Applied Christoph Hellwig 2 participants 2 messages Jul 5, 2024 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 loop: remove the unused inode variable in loop_configure

Remove the inode variable now that the last user is gone.

Fixes a17ece76bcfe ("loop: regularize upgrading the block size for direct I/O")
---
 drivers/block/loop.c | 2 --
 1 file changed, 2 deletions(-)
drivers/block/loop.c +0 -2
index bba4c920508f88..1580327dbc1e15 100644
@@ -1019,7 +1019,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;
@@ -1056,7 +1055,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;
Signature · 1 line
2.43.0
maintainer Applied
#1 lore raw
Quoted 3 lines · Christoph Hellwig

Remove the inode variable now that the last user is gone.

Applied, thanks!

[1/1] loop: remove the unused inode variable in loop_configure

      commit: dd54fd4e1780b349043f2d74784b8b702dbd84e9

Best regards,

Signature · 1 line
Jens Axboe