Fix coverity warning / legitimate minor bug 60/13560/2
authorDave Barach <dave@barachs.net>
Thu, 19 Jul 2018 16:29:45 +0000 (12:29 -0400)
committerFlorin Coras <florin.coras@gmail.com>
Thu, 19 Jul 2018 23:20:29 +0000 (23:20 +0000)
Of the form "if ((foo & 0x10) == 1)", as opposed to
"if (foo & 0x10)"

Change-Id: I6a6d276aeed4af7c1c6c78546ee68d598d54d7db
Signed-off-by: Dave Barach <dave@barachs.net>
src/vppinfra/dlmalloc.c

index 8acea8b..2199d87 100644 (file)
@@ -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)