btrfs: Remove never reached error handling code in __add_reloc_root
authorNikolay Borisov <nborisov@suse.com>
Thu, 13 Jul 2017 11:11:07 +0000 (14:11 +0300)
committerDavid Sterba <dsterba@suse.com>
Wed, 16 Aug 2017 14:12:03 +0000 (16:12 +0200)
commite3f3ad126829779a5ad0e7846cd52adf7cc180a9
tree29079310cb9e747feefb9b60d8ddbb4be5ccd403
parente4ff5fb5dc3742b126a2f4d1f18706509812d084
btrfs: Remove never reached error handling code in __add_reloc_root

One of the error handling paths in __add_reloc_root contains btrfs_panic()
followed by some other code. As the name implies what it does is print
some error message and call BUG, naturally what follow afterwards is not
invoked. So remove this extra code.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/relocation.c