projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25ff5e5
)
btrfs-progs: cleanup: remove unnecessary check before btrfs_free_path is called
author
Tsutomu Itoh
<t-itoh@jp.fujitsu.com>
Wed, 19 Aug 2015 08:44:53 +0000
(17:44 +0900)
committer
David Sterba
<dsterba@suse.com>
Mon, 31 Aug 2015 17:25:12 +0000
(19:25 +0200)
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>
cmds-check.c
patch
|
blob
|
history
diff --git
a/cmds-check.c
b/cmds-check.c
index
4fa8709
..
8019fb0
100644
(file)
--- 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)