src/devices/csma/backoff.cc
changeset 7044 f94b264549d1
parent 7040 444bb5c76bff
--- a/src/devices/csma/backoff.cc	Wed Aug 25 17:42:52 2010 +0200
+++ b/src/devices/csma/backoff.cc	Wed Aug 25 21:31:43 2010 +0200
@@ -46,7 +46,6 @@
 Time
 Backoff::GetBackoffTime (void)
 {
-  Time backoff;
   uint32_t ceiling;
 
   if ((m_ceiling > 0) &&(m_numBackoffRetries > m_ceiling))
@@ -67,7 +66,7 @@
 
   uint32_t backoffSlots = (uint32_t)m_rng.GetValue(minSlot, maxSlot);
 
-  backoff = backoffSlots * m_slotTime.To ();
+  Time backoff = Time (backoffSlots * m_slotTime);
   return backoff;
 }