Skip to content

Commit d7092ae

Browse files
jon ernsttytso
authored andcommitted
ext4: delete "set but not used" variables
Signed-off-by: Jon Ernst <jonernst07@gmail.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>
1 parent 8c9367f commit d7092ae

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

‎fs/ext4/inline.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1841,7 +1841,6 @@ int ext4_try_to_evict_inline_data(handle_t *handle,
18411841
{
18421842
int error;
18431843
struct ext4_xattr_entry *entry;
1844-
struct ext4_xattr_ibody_header *header;
18451844
struct ext4_inode *raw_inode;
18461845
struct ext4_iloc iloc;
18471846

@@ -1850,7 +1849,6 @@ int ext4_try_to_evict_inline_data(handle_t *handle,
18501849
return error;
18511850

18521851
raw_inode = ext4_raw_inode(&iloc);
1853-
header = IHDR(inode, raw_inode);
18541852
entry = (struct ext4_xattr_entry *)((void *)raw_inode +
18551853
EXT4_I(inode)->i_inline_off);
18561854
if (EXT4_XATTR_LEN(entry->e_name_len) +

‎fs/ext4/ioctl.c‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,8 @@ static long swap_inode_boot_loader(struct super_block *sb,
101101
handle_t *handle;
102102
int err;
103103
struct inode *inode_bl;
104-
struct ext4_inode_info *ei;
105104
struct ext4_inode_info *ei_bl;
106-
struct ext4_sb_info *sbi;
105+
struct ext4_sb_info *sbi = EXT4_SB(sb);
107106

108107
if (inode->i_nlink != 1 || !S_ISREG(inode->i_mode)) {
109108
err = -EINVAL;
@@ -115,9 +114,6 @@ static long swap_inode_boot_loader(struct super_block *sb,
115114
goto swap_boot_out;
116115
}
117116

118-
sbi = EXT4_SB(sb);
119-
ei = EXT4_I(inode);
120-
121117
inode_bl = ext4_iget(sb, EXT4_BOOT_LOADER_INO);
122118
if (IS_ERR(inode_bl)) {
123119
err = PTR_ERR(inode_bl);

0 commit comments

Comments
 (0)