]> Pileus Git - ~andy/linux/blobdiff - fs/ext4/ioctl.c
ext4: delete "set but not used" variables
[~andy/linux] / fs / ext4 / ioctl.c
index 60589b60e9b04936cb2d27c9615b2b8caee246fb..6bea80614d77c19c6ca7b1ac9160d64f1115b36e 100644 (file)
@@ -101,9 +101,8 @@ static long swap_inode_boot_loader(struct super_block *sb,
        handle_t *handle;
        int err;
        struct inode *inode_bl;
-       struct ext4_inode_info *ei;
        struct ext4_inode_info *ei_bl;
-       struct ext4_sb_info *sbi;
+       struct ext4_sb_info *sbi = EXT4_SB(sb);
 
        if (inode->i_nlink != 1 || !S_ISREG(inode->i_mode)) {
                err = -EINVAL;
@@ -115,9 +114,6 @@ static long swap_inode_boot_loader(struct super_block *sb,
                goto swap_boot_out;
        }
 
-       sbi = EXT4_SB(sb);
-       ei = EXT4_I(inode);
-
        inode_bl = ext4_iget(sb, EXT4_BOOT_LOADER_INO);
        if (IS_ERR(inode_bl)) {
                err = PTR_ERR(inode_bl);