From 23ebb35f80c957fe93d18dcb02a7940554096747 Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Tue, 15 May 2012 22:32:23 -0700 Subject: [PATCH] remove tests that always evaluate to true --- src/lte/model/lte-common.cc | 2 +- src/lte/model/lte-mi-error-model.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lte/model/lte-common.cc b/src/lte/model/lte-common.cc index 77d32807c..be66e58f8 100644 --- a/src/lte/model/lte-common.cc +++ b/src/lte/model/lte-common.cc @@ -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]; } diff --git a/src/lte/model/lte-mi-error-model.cc b/src/lte/model/lte-mi-error-model.cc index 4639902b0..12b3c946d 100644 --- a/src/lte/model/lte-mi-error-model.cc +++ b/src/lte/model/lte-mi-error-model.cc @@ -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))