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:
684572d
)
btrfs: remove a useless return statement in btrfs_block_rsv_add
author
Lu Fengqi
<lufq.fnst@cn.fujitsu.com>
Sat, 4 Aug 2018 13:10:56 +0000
(21:10 +0800)
committer
David Sterba
<dsterba@suse.com>
Mon, 15 Oct 2018 15:23:25 +0000
(17:23 +0200)
Since ret must be 0 here, don't have to return. No functional change
and code readability is not hurt.
Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/extent-tree.c
b/fs/btrfs/extent-tree.c
index 26616712de1302265b64b75768e7232539512641..8e4a8581e15166634184b58a7f03795f4c554c56 100644
(file)
--- a/
fs/btrfs/extent-tree.c
+++ b/
fs/btrfs/extent-tree.c
@@
-5539,10
+5539,8
@@
int btrfs_block_rsv_add(struct btrfs_root *root,
return 0;
ret = reserve_metadata_bytes(root, block_rsv, num_bytes, flush);
- if (!ret)
{
+ if (!ret)
block_rsv_add_bytes(block_rsv, num_bytes, true);
- return 0;
- }
return ret;
}