diff options
author | Wang Shilong <wangsl-fnst@cn.fujitsu.com> | 2013-02-27 11:21:40 +0000 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-03-01 10:13:04 -0500 |
commit | 235fdb8ef2a313749cf3a42e70156c618263a388 (patch) | |
tree | 45153c94dfcc76f1e4c9dade4f5265401b56ca70 /fs/btrfs | |
parent | 84cbe2f725f59b72fffb48ab7161e771eeee5103 (diff) | |
download | kernel_goldelico_gta04-235fdb8ef2a313749cf3a42e70156c618263a388.zip kernel_goldelico_gta04-235fdb8ef2a313749cf3a42e70156c618263a388.tar.gz kernel_goldelico_gta04-235fdb8ef2a313749cf3a42e70156c618263a388.tar.bz2 |
Btrfs: remove reduplicate check about root in the function btrfs_clean_quota_tree
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>
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/qgroup.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/qgroup.c b/fs/btrfs/qgroup.c index 69fa487..aee4b1c 100644 --- 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; |