Bug 2738

Summary: LteHelper unreachable code
Product: ns-3 Reporter: Tom Henderson <tomh>
Component: lteAssignee: Marco Miozzo <mmiozzo>
Status: ASSIGNED ---    
Severity: normal CC: ns-bugs
Priority: P3    
Version: unspecified   
Hardware: All   
OS: All   

Description Tom Henderson 2017-05-11 15:27:56 EDT
Robert Ammon reported that Visual Studio complains about the unreachable last statement below.  Marco confirms that this is a bug and will follow up.


uint8_t
LteHelper::ActivateDedicatedEpsBearer (NetDeviceContainer ueDevices, EpsBearer bearer, Ptr<EpcTft> tft)
{
   NS_LOG_FUNCTION (this);

   for (NetDeviceContainer::Iterator i = ueDevices.Begin (); i != ueDevices.End (); ++i)
     {
       uint8_t bearerId = ActivateDedicatedEpsBearer (*i, bearer, tft);
       return bearerId;
     }
   return 0;
}