Skip to contentSkip to conversation

Btrfs: remove reduplicate check about root in the function btrfs_clean_quota_tree

PATCH In review Wang Shilong 1 participant 1 message Feb 27, 2013 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 Btrfs: remove reduplicate check about root in the function btrfs_clean_quota_tree

From: Wang Shilong <[email protected]>

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.

---
 fs/btrfs/qgroup.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
fs/btrfs/qgroup.c +0 -3
index 69fa487..aee4b1c 100644
@@ -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;
Signature · 1 line
1.7.7.6