Skip to content

Commit

Permalink
ext4: fix usless declarations
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitri Monakho authored and Theodore Ts'o committed Apr 10, 2013
1 parent 27dd438 commit 8c8e0ca
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion fs/ext4/ialloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,6 @@ struct inode *__ext4_new_inode(handle_t *handle, struct inode *dir,
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,
Expand Down
1 change: 0 additions & 1 deletion fs/ext4/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,6 @@ long ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)

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;

Expand Down
2 changes: 0 additions & 2 deletions fs/ext4/mballoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion fs/ext4/move_extent.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8c8e0ca

Please sign in to comment.