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>
This commit is contained in:
Wang Shilong 2013-02-27 11:21:40 +00:00 committed by Josef Bacik
parent 84cbe2f725
commit 235fdb8ef2

View File

@ -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;