diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-01-12 16:52:58 +0000 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-03-26 15:09:29 +0200 |
commit | 7a61f8808833115bc32dd44a9d0ce10039b9399d (patch) | |
tree | 638b0585f69548fcbba794850867101e302b251c | |
parent | 7806c6eb15f227a484c368bbaf07da9978f57869 (diff) | |
download | blackbird-obmc-linux-7a61f8808833115bc32dd44a9d0ce10039b9399d.tar.gz blackbird-obmc-linux-7a61f8808833115bc32dd44a9d0ce10039b9399d.zip |
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>
-rw-r--r-- | fs/btrfs/tests/btrfs-tests.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/tests/btrfs-tests.c b/fs/btrfs/tests/btrfs-tests.c index 9786d8cd0aa6..e74278170806 100644 --- a/fs/btrfs/tests/btrfs-tests.c +++ b/fs/btrfs/tests/btrfs-tests.c @@ -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; |