Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
3a9702a
)
Fix coverity warning / legitimate minor bug
60/13560/2
author
Dave Barach
<dave@barachs.net>
Thu, 19 Jul 2018 16:29:45 +0000
(12:29 -0400)
committer
Florin 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
patch
|
blob
|
history
diff --git
a/src/vppinfra/dlmalloc.c
b/src/vppinfra/dlmalloc.c
index
8acea8b
..
2199d87
100644
(file)
--- 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)