btrfs: remove redundant check on ret and goto
authorColin Ian King <colin.king@canonical.com>
Fri, 12 Jan 2018 16:52:58 +0000 (16:52 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Mar 2018 13:09:29 +0000 (15:09 +0200)
commit7a61f8808833115bc32dd44a9d0ce10039b9399d
tree638b0585f69548fcbba794850867101e302b251c
parent7806c6eb15f227a484c368bbaf07da9978f57869
btrfs: remove redundant check on ret and goto

The check for a non-zero ret is redundant as the goto will jump to
the very next statement anyway.  Remove this extraneous code.

Detected by CoverityScan, CID#1463784 ("Identical code for different
branches")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tests/btrfs-tests.c