From: Darrick J. Wong Date: Mon, 5 Feb 2018 20:37:49 +0000 (-0600) Subject: xfs_scrub: kill dead code X-Git-Tag: v4.15.0-rc1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33a503423d5fa11316aeb71b6e136aa3583df38d;p=thirdparty%2Fxfsprogs-dev.git xfs_scrub: kill dead code 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 Reviewed-by: Eric Sandeen Signed-off-by: Eric Sandeen --- diff --git a/scrub/scrub.c b/scrub/scrub.c index 0dbe11cc4..6abca2ac9 100644 --- a/scrub/scrub.c +++ b/scrub/scrub.c @@ -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