remove tests that always evaluate to true

This commit is contained in:
Tom Henderson
2012-05-15 22:32:23 -07:00
parent f9f0445b70
commit 23ebb35f80
2 changed files with 2 additions and 2 deletions

View File

@@ -141,7 +141,7 @@ uint32_t BufferSizeLevelBsrTable[64] = {
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];
}

View File

@@ -293,7 +293,7 @@ LteMiErrorModel::MappingMiBler (double mib, uint8_t mcs, uint16_t cbSize)
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))