Commit 7a61f880 authored by Colin Ian King's avatar Colin Ian King Committed by David Sterba
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 7806c6eb
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -278,8 +278,7 @@ int btrfs_run_sanity_tests(void)
		}
	}
	ret = btrfs_test_extent_map();
	if (ret)
		goto out;

out:
	btrfs_destroy_test_fs();
	return ret;