summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>2015-08-19 17:44:53 +0900
committerDavid Sterba <dsterba@suse.com>2015-08-31 19:25:12 +0200
commitb651b8ca7eb70bf82ebdb0d199c64be0109ff2b1 (patch)
tree7f14441b7595ee8d104b3b0fce56233b77959ae6
parent25ff5e53e084bd3cf3d3a8b0448cd4ee512b41a4 (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>
-rw-r--r--cmds-check.c3
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)