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>
This commit is contained in:
Dave Barach
2018-07-19 12:29:45 -04:00
committed by Florin Coras
parent 3a9702a05f
commit ed2fe93fd1

View 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)