style: eliminate explicit boolean comparisons
authorSteve Reinhardt <steve.reinhardt@amd.com>
Sun, 7 Feb 2016 01:21:20 +0000 (17:21 -0800)
committerSteve Reinhardt <steve.reinhardt@amd.com>
Sun, 7 Feb 2016 01:21:20 +0000 (17:21 -0800)
commitf6b828d068b046df17b462a4d05af957c038a3a8
tree1f7be86e41467862c9377e3ca78fa661cc270aed
parent2d91e741e8ffc8ae3d40f1e849db87e69af7bfa9
style: eliminate explicit boolean comparisons

Result of running 'hg m5style --skip-all --fix-control -a' to get
rid of '== true' comparisons, plus trivial manual edits to get
rid of '== false'/'== False' comparisons.

Left a couple of explicit comparisons in where they didn't seem
unreasonable:
invalid boolean comparison in src/arch/mips/interrupts.cc:155
>>        DPRINTF(Interrupt, "Interrupts OnCpuTimerINterrupt(tc) == true\n");<<
invalid boolean comparison in src/unittest/unittest.hh:110
>>            "EXPECT_FALSE(" #expr ")", (expr) == false)<<
src/arch/hsail/gen.py
src/arch/hsail/insts/decl.hh
src/arch/hsail/insts/mem.hh
src/cpu/base.cc
src/dev/net/dist_iface.cc
src/mem/ruby/common/WriteMask.hh
src/mem/ruby/network/garnet/fixed-pipeline/SWallocator_d.cc
src/mem/ruby/system/GPUCoalescer.cc
src/mem/slicc/symbols/Transition.py