btrfs-progs: cleanup: remove unnecessary check before btrfs_free_path is called
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>
Wed, 19 Aug 2015 08:44:53 +0000 (17:44 +0900)
committerDavid 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

index 4fa8709..8019fb0 100644 (file)
@@ -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)