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

Commit 527afb44 authored by Tsutomu Itoh's avatar Tsutomu Itoh Committed by Chris Mason
Browse files

Btrfs: cleanup: remove unnecessary check before btrfs_free_path is called



We need not check path before btrfs_free_path() is called because
path is checked in btrfs_free_path().

Signed-off-by: default avatarTsutomu Itoh <t-itoh@jp.fujitsu.com>
Reviewed-by: default avatarQu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent c6dd6ea5
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -183,7 +183,6 @@ int btrfs_init_dev_replace(struct btrfs_fs_info *fs_info)
	}

out:
	if (path)
	btrfs_free_path(path);
	return ret;
}
+1 −2
Original line number Diff line number Diff line
@@ -6905,7 +6905,6 @@ struct extent_map *btrfs_get_extent(struct inode *inode, struct page *page,

	trace_btrfs_get_extent(root, em);

	if (path)
	btrfs_free_path(path);
	if (trans) {
		ret = btrfs_end_transaction(trans, root);
+1 −2
Original line number Diff line number Diff line
@@ -115,7 +115,6 @@ int btrfs_defrag_leaves(struct btrfs_trans_handle *trans,
		ret = -EAGAIN;
	}
out:
	if (path)
	btrfs_free_path(path);
	if (ret == -EAGAIN) {
		if (root->defrag_max.objectid > root->defrag_progress.objectid)