]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
scrub: remove redundant debug test
authorEric Sandeen <sandeen@redhat.com>
Tue, 9 Oct 2018 16:49:47 +0000 (11:49 -0500)
committerEric Sandeen <sandeen@redhat.com>
Tue, 9 Oct 2018 16:49:47 +0000 (11:49 -0500)
debug_tweak_on() already tests for debug.

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

index 076a86ad205f78bb51aa606a1ea12ff68b9aee2a..33b83a5fca2d03dfc2028ff91deef387fd4b03b4 100644 (file)
@@ -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. */