mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
synced 2024-11-16 00:34:32 +08:00
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:
parent
25ff5e53e0
commit
b651b8ca7e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user