btrfs: fix possible leak in btrfs_ioctl_balance()
[cascardo/linux.git] / fs / btrfs / dev-replace.c
index 564a7de..e54dd59 100644 (file)
@@ -183,8 +183,7 @@ no_valid_dev_replace_entry_found:
        }
 
 out:
-       if (path)
-               btrfs_free_path(path);
+       btrfs_free_path(path);
        return ret;
 }