diff options
author | Tsutomu Itoh <t-itoh@jp.fujitsu.com> | 2015-08-19 17:44:53 +0900 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2015-08-31 19:25:12 +0200 |
commit | b651b8ca7eb70bf82ebdb0d199c64be0109ff2b1 (patch) | |
tree | 7f14441b7595ee8d104b3b0fce56233b77959ae6 /cmds-check.c | |
parent | 25ff5e53e084bd3cf3d3a8b0448cd4ee512b41a4 (diff) |
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>
Diffstat (limited to 'cmds-check.c')
-rw-r--r-- | cmds-check.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmds-check.c b/cmds-check.c index 4fa8709b..8019fb0a 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -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) |