From 33a503423d5fa11316aeb71b6e136aa3583df38d Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Mon, 5 Feb 2018 14:37:49 -0600 Subject: [PATCH] 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 --- scrub/scrub.c | 1 - 1 file changed, 1 deletion(-) 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 -- 2.47.2