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:
84cbe2f
)
Btrfs: remove reduplicate check about root in the function btrfs_clean_quota_tree
author
Wang Shilong
<wangsl-fnst@cn.fujitsu.com>
Wed, 27 Feb 2013 11:21:40 +0000
(11:21 +0000)
committer
Josef Bacik
<jbacik@fusionio.com>
Fri, 1 Mar 2013 15:13:04 +0000
(10:13 -0500)
The check work has been done just before the function btrfs_clean_quota_tree
is called, it is not necessary to check it again, remove it.
Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/qgroup.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/qgroup.c
b/fs/btrfs/qgroup.c
index 69fa487e29ce4368d779c90faefcca8fd3cef07b..aee4b1cc3d988ccc0dbde615000d07bcf5d35051 100644
(file)
--- a/
fs/btrfs/qgroup.c
+++ b/
fs/btrfs/qgroup.c
@@
-742,9
+742,6
@@
static int btrfs_clean_quota_tree(struct btrfs_trans_handle *trans,
int ret;
int nr = 0;
- if (!root)
- return -EINVAL;
-
path = btrfs_alloc_path();
if (!path)
return -ENOMEM;