mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +00:00
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:
parent
84cbe2f725
commit
235fdb8ef2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user