btrfs-progs: 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: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Tsutomu Itoh 2015-08-19 17:44:53 +09:00 committed by David Sterba
parent 25ff5e53e0
commit b651b8ca7e

View File

@ -9226,8 +9226,7 @@ next:
ret = 0;
out:
free_roots_info_cache();
if (path)
btrfs_free_path(path);
btrfs_free_path(path);
if (trans)
btrfs_commit_transaction(trans, info->tree_root);
if (ret < 0)