]> 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)
commit496722ff8aa886c463586ecaab0cd06068c77925
tree638b0585f69548fcbba794850867101e302b251c
parente44c9657e68a1ec300325cef3c7ec730354b761b
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