commit | 0bef71093d4461659643ddcef431d88a078e0407 | [log] [tgz] |
---|---|---|
author | Sahil Kang <sahil.kang@asilaycomputing.com> | Wed May 17 03:33:45 2017 -0700 |
committer | David Sterba <dsterba@suse.com> | Mon Jun 19 18:25:59 2017 +0200 |
tree | 3a2eee05e0849f39319001e071e05a41e218786f | |
parent | e477094f0d3ce35b30d230bda3f31fc060cfe93b [diff] |
btrfs: Remove unnecessary branching in free-space-tree.c Both btrfs_create_free_space_tree and btrfs_clear_free_space_tree contain: if (ret) return ret; return 0; The if statement is only false when ret equals zero, and since we return zero in such cases, we can safely remove the branching. Signed-off-by: Sahil Kang <sahil.kang@asilaycomputing.com> Signed-off-by: David Sterba <dsterba@suse.com>