diff options
author | Tsutomu Itoh <t-itoh@jp.fujitsu.com> | 2015-08-19 01:55:00 -0400 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-08-31 14:46:41 -0400 |
commit | 527afb4493c2892ce89fb74648e72a30b68ba120 (patch) | |
tree | 6e65e787a12ab45f33a4f6576046c7d33b902998 /fs/btrfs/dev-replace.c | |
parent | c6dd6ea55758cf403bdc07a51a06c2a1d474f906 (diff) |
Btrfs: 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>
Reviewed-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
-rw-r--r-- | fs/btrfs/dev-replace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/dev-replace.c b/fs/btrfs/dev-replace.c index 564a7de17d99..e54dd5905cee 100644 --- a/fs/btrfs/dev-replace.c +++ b/fs/btrfs/dev-replace.c | |||
@@ -183,8 +183,7 @@ no_valid_dev_replace_entry_found: | |||
183 | } | 183 | } |
184 | 184 | ||
185 | out: | 185 | out: |
186 | if (path) | 186 | btrfs_free_path(path); |
187 | btrfs_free_path(path); | ||
188 | return ret; | 187 | return ret; |
189 | } | 188 | } |
190 | 189 | ||