From: Eric Sandeen Date: Tue, 9 Oct 2018 16:49:47 +0000 (-0500) Subject: scrub: remove redundant debug test X-Git-Tag: v4.19.0-rc1~50 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ea0195155db8d28cc0bf66d84cc06526724e52cc;p=thirdparty%2Fxfsprogs-dev.git scrub: remove redundant debug test debug_tweak_on() already tests for debug. Signed-off-by: Eric Sandeen Reviewed-by: Darrick J. Wong Signed-off-by: Eric Sandeen --- diff --git a/scrub/xfs_scrub.c b/scrub/xfs_scrub.c index 076a86ad2..33b83a5fc 100644 --- a/scrub/xfs_scrub.c +++ b/scrub/xfs_scrub.c @@ -425,7 +425,7 @@ run_scrub_phases( unsigned int nr_threads; int rshift; - if (debug && debug_tweak_on("XFS_SCRUB_PHASE")) + if (debug_tweak_on("XFS_SCRUB_PHASE")) debug_phase = atoi(getenv("XFS_SCRUB_PHASE")); /* Run all phases of the scrub tool. */