diff --git a/src/mtp/model/logical-process.cc b/src/mtp/model/logical-process.cc index 8b19193c4..6a128bdae 100644 --- a/src/mtp/model/logical-process.cc +++ b/src/mtp/model/logical-process.cc @@ -87,7 +87,7 @@ LogicalProcess::CalculateLookAhead() continue; } Ptr channel = localNetDevice->GetChannel(); - if (channel == 0) + if (!channel) { continue; } @@ -287,7 +287,7 @@ void LogicalProcess::SetScheduler(ObjectFactory schedulerFactory) { Ptr scheduler = schedulerFactory.Create(); - if (m_events != 0) + if (m_events) { while (!m_events->IsEmpty()) { diff --git a/src/mtp/model/multithreaded-simulator-impl.cc b/src/mtp/model/multithreaded-simulator-impl.cc index c7164fac1..0c9954964 100644 --- a/src/mtp/model/multithreaded-simulator-impl.cc +++ b/src/mtp/model/multithreaded-simulator-impl.cc @@ -293,7 +293,7 @@ MultithreadedSimulatorImpl::Partition() { Ptr localNetDevice = node->GetDevice(i); Ptr channel = localNetDevice->GetChannel(); - if (channel == 0) + if (!channel) { continue; } @@ -344,7 +344,7 @@ MultithreadedSimulatorImpl::Partition() { Ptr localNetDevice = node->GetDevice(i); Ptr channel = localNetDevice->GetChannel(); - if (channel == 0) + if (!channel) { continue; }