projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc71652
)
ext4: remove unneeded variable "err" in ext4_mb_release_inode_pa()
author
zhong jiang
<zhongjiang@huawei.com>
Sat, 4 Aug 2018 21:34:07 +0000
(17:34 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Sat, 4 Aug 2018 21:34:07 +0000
(17:34 -0400)
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>
fs/ext4/mballoc.c
patch
|
blob
|
history
diff --git
a/fs/ext4/mballoc.c
b/fs/ext4/mballoc.c
index 8b24d3d42cb381e048ee12045317b87b21c84304..e29fce2fbf25f286136b9ae874c1237dea7ffd33 100644
(file)
--- 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,
ext4_group_t group;
ext4_grpblk_t bit;
unsigned long long grp_blk_start;
- int err = 0;
int free = 0;
BUG_ON(pa->pa_deleted == 0);
@@
-3842,7
+3841,7
@@
ext4_mb_release_inode_pa(struct ext4_buddy *e4b, struct buffer_head *bitmap_bh,
}
atomic_add(free, &sbi->s_mb_discarded);
- return
err
;
+ return
0
;
}
static noinline_for_stack int