summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2018-07-19 12:29:45 -0400
committerFlorin Coras <florin.coras@gmail.com>2018-07-19 23:20:29 +0000
commited2fe93fd1ee7bfdad54f323946d76da91aa3398 (patch)
tree5a8637e358b84728a07dcb869c095fbc729ef835 /src
parent3a9702a05feb2e810ebd992d75fcee98b5888071 (diff)
Fix coverity warning / legitimate minor bug
Of the form "if ((foo & 0x10) == 1)", as opposed to "if (foo & 0x10)" Change-Id: I6a6d276aeed4af7c1c6c78546ee68d598d54d7db Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src')
-rw-r--r--src/vppinfra/dlmalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/dlmalloc.c b/src/vppinfra/dlmalloc.c
index 8acea8bc2bf..2199d876e91 100644
--- a/src/vppinfra/dlmalloc.c
+++ b/src/vppinfra/dlmalloc.c
@@ -4133,7 +4133,7 @@ int mspace_enable_disable_trace (mspace msp, int enable)
mstate ms = (mstate)msp;
int was_enabled = 0;
- if (use_trace(ms) == 1)
+ if (use_trace(ms))
was_enabled = 1;
if (enable)