btrfs: Remove unnecessary branching in free-space-tree.c
authorSahil Kang <sahil.kang@asilaycomputing.com>
Wed, 17 May 2017 10:33:45 +0000 (03:33 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2017 16:25:59 +0000 (18:25 +0200)
commit0bef71093d4461659643ddcef431d88a078e0407
tree3a2eee05e0849f39319001e071e05a41e218786f
parente477094f0d3ce35b30d230bda3f31fc060cfe93b
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>
fs/btrfs/free-space-tree.c