[style] harmonize boolean checks (#4048)

This commit simplifies boolean checks containing `== false` to use the
`!` operator instead, and removes redundant `== true` checks. This
commit aims to harmonize the boolean checks across core modules.
This commit is contained in:
Abtin Keshavarzian
2019-08-01 10:30:08 -07:00
committed by Jonathan Hui
parent 74bfb58d2a
commit 31ce3d45c8
17 changed files with 42 additions and 49 deletions
+1 -1
View File
@@ -1023,7 +1023,7 @@ void Interpreter::ProcessEidCache(int argc, char *argv[])
{
SuccessOrExit(otThreadGetEidCacheEntry(mInstance, i, &entry));
if (entry.mValid == false)
if (!entry.mValid)
{
continue;
}