]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_scrub: kill dead code
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 5 Feb 2018 20:37:49 +0000 (14:37 -0600)
committerEric Sandeen <sandeen@redhat.com>
Mon, 5 Feb 2018 20:37:49 +0000 (14:37 -0600)
We can't reach the return mess at the bottom of __xfs_scrub_test so get
rid of it.

Fixes-coverity-id: 1428798
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
scrub/scrub.c

index 0dbe11cc4b527cca53af632b18dfa7c2b7d6b255..6abca2ac9d8763199fb5d36da62021acbd37d8a8 100644 (file)
@@ -602,7 +602,6 @@ _("Kernel %s %s facility not detected."),
                str_info(ctx, ctx->mntpoint, "%s", strerror(errno));
                return true;
        }
-       return error == 0 || (error && errno != EOPNOTSUPP && errno != ENOTTY);
 }
 
 bool