From e28f353cda1257e21b552e1ff279739d22576d85 Mon Sep 17 00:00:00 2001 From: Eduardo Almeida Date: Fri, 2 Dec 2022 21:14:43 +0000 Subject: [PATCH] wimax: Fix redundant if-else condition --- src/wimax/model/bs-net-device.cc | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/wimax/model/bs-net-device.cc b/src/wimax/model/bs-net-device.cc index 9a4bf4f3f..ad94a9424 100644 --- a/src/wimax/model/bs-net-device.cc +++ b/src/wimax/model/bs-net-device.cc @@ -1001,18 +1001,9 @@ BaseStationNetDevice::SendBursts() if (cid != GetInitialRangingConnection()->GetCid() && cid != GetBroadcastConnection()->GetCid()) { - if (m_serviceFlowManager->GetServiceFlow(cid) != nullptr) - { - modulationType = - GetBurstProfileManager()->GetModulationType(diuc, - WimaxNetDevice::DIRECTION_DOWNLINK); - } - else - { - modulationType = - GetBurstProfileManager()->GetModulationType(diuc, - WimaxNetDevice::DIRECTION_DOWNLINK); - } + modulationType = + GetBurstProfileManager()->GetModulationType(diuc, + WimaxNetDevice::DIRECTION_DOWNLINK); } else {