From f6b828d068b046df17b462a4d05af957c038a3a8 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Sat, 6 Feb 2016 17:21:20 -0800 Subject: 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/dev/net/dist_iface.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dev/net') diff --git a/src/dev/net/dist_iface.cc b/src/dev/net/dist_iface.cc index 45ce651a9..1025dffe3 100644 --- a/src/dev/net/dist_iface.cc +++ b/src/dev/net/dist_iface.cc @@ -517,8 +517,8 @@ void DistIface::RecvScheduler::unserialize(CheckpointIn &cp) { assert(descQueue.size() == 0); - assert(recvDone->scheduled() == false); - assert(ckptRestore == false); + assert(!recvDone->scheduled()); + assert(!ckptRestore); UNSERIALIZE_SCALAR(prevRecvTick); // unserialize the receive desc queue -- cgit v1.2.3