Bug 2738 - LteHelper unreachable code
LteHelper unreachable code
Status: ASSIGNED
Product: ns-3
Classification: Unclassified
Component: lte
unspecified
All All
: P3 normal
Assigned To: Marco Miozzo
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-05-11 15:27 EDT by Tom Henderson
Modified: 2017-05-11 15:28 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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;
}