ext4: fix usless declarations
authorDmitri Monakho <dmonakhov@openvz.org>
Wed, 10 Apr 2013 02:48:36 +0000 (22:48 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 10 Apr 2013 02:48:36 +0000 (22:48 -0400)
This patch should fix sparse complains about shadow declatations.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ialloc.c
fs/ext4/ioctl.c
fs/ext4/mballoc.c
fs/ext4/move_extent.c

index 6c5bb8d993fe8ebb07ae48dab2697e247c78ea01..4c358f711cef25c584a90b6c34a10d7616cb1fde 100644 (file)
@@ -899,7 +899,6 @@ got:
        if (EXT4_HAS_RO_COMPAT_FEATURE(sb,
                        EXT4_FEATURE_RO_COMPAT_METADATA_CSUM)) {
                __u32 csum;
-               struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb);
                __le32 inum = cpu_to_le32(inode->i_ino);
                __le32 gen = cpu_to_le32(inode->i_generation);
                csum = ext4_chksum(sbi, sbi->s_csum_seed, (__u8 *)&inum,
index cbc3acea6bcf8a2637766f920524bfa9c0cdedc5..9491ac0590f746b9abe56e484e7646022a0bd1c3 100644 (file)
@@ -552,7 +552,6 @@ group_add_out:
 
        case EXT4_IOC_RESIZE_FS: {
                ext4_fsblk_t n_blocks_count;
-               struct super_block *sb = inode->i_sb;
                int err = 0, err2 = 0;
                ext4_group_t o_group = EXT4_SB(sb)->s_groups_count;
 
index 6a87f7217474271dcd3119b9aa0c18533804ca92..a11ea4d6164c2593411517473d6543160cec1f6e 100644 (file)
@@ -884,8 +884,6 @@ static int ext4_mb_init_cache(struct page *page, char *incore)
 
        first_block = page->index * blocks_per_page;
        for (i = 0; i < blocks_per_page; i++) {
-               int group;
-
                group = (first_block + i) >> 1;
                if (group >= ngroups)
                        break;
index a2e696e1633147d32591ee63fe4194560c15916c..661f4ce688ec101682813d65d9cd5192d8e49c5e 100644 (file)
@@ -858,7 +858,6 @@ mext_page_mkuptodate(struct page *page, unsigned from, unsigned to)
                if (buffer_uptodate(bh))
                        continue;
                if (!buffer_mapped(bh)) {
-                       int err = 0;
                        err = ext4_get_block(inode, block, bh, 0);
                        if (err) {
                                SetPageError(page);