Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 235fdb8e authored by Wang Shilong's avatar Wang Shilong Committed by Josef Bacik
Browse files

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: default avatarWang Shilong <wangsl-fnst@cn.fujitsu.com>
Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
parent 84cbe2f7
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -742,9 +742,6 @@ static int btrfs_clean_quota_tree(struct btrfs_trans_handle *trans,
	int ret;
	int ret;
	int nr = 0;
	int nr = 0;


	if (!root)
		return -EINVAL;

	path = btrfs_alloc_path();
	path = btrfs_alloc_path();
	if (!path)
	if (!path)
		return -ENOMEM;
		return -ENOMEM;