remove tests that always evaluate to true
authorTom Henderson <tomh@tomh.org>
Tue, 15 May 2012 22:32:23 -0700
changeset 8762 46d94f0ede45
parent 8761 8675a3948f7c
child 8763 bac46543614f
remove tests that always evaluate to true
src/lte/model/lte-common.cc
src/lte/model/lte-mi-error-model.cc
--- a/src/lte/model/lte-common.cc	Tue May 15 22:30:45 2012 -0700
+++ b/src/lte/model/lte-common.cc	Tue May 15 22:32:23 2012 -0700
@@ -141,7 +141,7 @@
 uint32_t
 BufferSizeLevelBsr::BsrId2BufferSize (uint8_t val)
 {
-  NS_ABORT_MSG_UNLESS (val >= 0 && val < 64, "val = " << val << " is out of range");
+  NS_ABORT_MSG_UNLESS (val < 64, "val = " << val << " is out of range");
   return BufferSizeLevelBsrTable[val];
 }
 
--- a/src/lte/model/lte-mi-error-model.cc	Tue May 15 22:30:45 2012 -0700
+++ b/src/lte/model/lte-mi-error-model.cc	Tue May 15 22:32:23 2012 -0700
@@ -293,7 +293,7 @@
   NS_LOG_FUNCTION (mib << (uint32_t) mcs << (uint32_t) cbSize);
   double b = 0;
   double c = 0;
-  NS_ASSERT_MSG (mcs>=0 && mcs < 32, "MCS out of range");
+  NS_ASSERT_MSG (mcs < 32, "MCS out of range");
   int tbsIndex = TbsIndex[mcs];
   int cbIndex = 1;
   while ((cbIndex < 9)&&(cbMiSizeTable[cbIndex]< cbSize))