summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhong jiang <zhongjiang@huawei.com>2018-08-04 17:34:07 -0400
committerTheodore Ts'o <tytso@mit.edu>2018-08-04 17:34:07 -0400
commit863c37fcb14f8b66ea831b45fb35a53ac4a8d69e (patch)
treee699c12ed03cfda99b2e8074304aa05abaa59f53
parentbc716523462f98ea6bfef3e1a5926daadbf32e9e (diff)
ext4: remove unneeded variable "err" in ext4_mb_release_inode_pa()
The err is not used after initalization. So just remove the variable. Signed-off-by: zhong jiang <zhongjiang@huawei.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r--fs/ext4/mballoc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index 8b24d3d42cb3..e29fce2fbf25 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -3801,7 +3801,6 @@ ext4_mb_release_inode_pa(struct ext4_buddy *e4b, struct buffer_head *bitmap_bh,
3801 ext4_group_t group; 3801 ext4_group_t group;
3802 ext4_grpblk_t bit; 3802 ext4_grpblk_t bit;
3803 unsigned long long grp_blk_start; 3803 unsigned long long grp_blk_start;
3804 int err = 0;
3805 int free = 0; 3804 int free = 0;
3806 3805
3807 BUG_ON(pa->pa_deleted == 0); 3806 BUG_ON(pa->pa_deleted == 0);
@@ -3842,7 +3841,7 @@ ext4_mb_release_inode_pa(struct ext4_buddy *e4b, struct buffer_head *bitmap_bh,
3842 } 3841 }
3843 atomic_add(free, &sbi->s_mb_discarded); 3842 atomic_add(free, &sbi->s_mb_discarded);
3844 3843
3845 return err; 3844 return 0;
3846} 3845}
3847 3846
3848static noinline_for_stack int 3847static noinline_for_stack int