mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-15 19:05:50 +00: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