summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debug.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/debug.h b/debug.h
index a2b6fa67..ba622146 100644
--- a/debug.h
+++ b/debug.h
@@ -31,11 +31,10 @@ extern unsigned int fio_debug_jobno, *fio_debug_jobp, *fio_warned;
static inline bool fio_did_warn(unsigned int mask)
{
- if (!(*fio_warned & mask)) {
- *fio_warned |= mask;
+ if (*fio_warned & mask)
return true;
- }
+ *fio_warned |= mask;
return false;
}