]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6db83788b3b5b65a2bc7cee47912bc92834bb6e9
tree638b0585f69548fcbba794850867101e302b251c
parente153d31bf4fe531e21fa838d37d36141b9e00a12
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