From: Tsutomu Itoh Date: Wed, 19 Aug 2015 08:44:53 +0000 (+0900) Subject: btrfs-progs: cleanup: remove unnecessary check before btrfs_free_path is called X-Git-Tag: upstream/4.16.1~2076 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b651b8ca7eb70bf82ebdb0d199c64be0109ff2b1;p=platform%2Fupstream%2Fbtrfs-progs.git 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 Signed-off-by: David Sterba --- diff --git a/cmds-check.c b/cmds-check.c index 4fa8709..8019fb0 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)