From: Wang Shilong Date: Wed, 27 Feb 2013 11:21:40 +0000 (+0000) Subject: Btrfs: remove reduplicate check about root in the function btrfs_clean_quota_tree X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=235fdb8ef2a313749cf3a42e70156c618263a388;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Josef Bacik --- diff --git a/fs/btrfs/qgroup.c b/fs/btrfs/qgroup.c index 69fa487e29ce..aee4b1cc3d98 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;