Re: [PATCH][btrfs-next] btrfs: remove redundant check on ret and goto

2018-02-06 Thread David Sterba
On Fri, Jan 12, 2018 at 04:52:58PM +, Colin King wrote: > From: Colin Ian King > > 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 > bra

[PATCH][btrfs-next] btrfs: remove redundant check on ret and goto

2018-01-12 Thread Colin King
From: Colin Ian King 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 --- fs/btrfs/tests/btrfs-tests.c