diff options
author | Tom Tsou <tom.tsou@ettus.com> | 2017-03-30 19:36:41 -0700 |
---|---|---|
committer | Tom Tsou <tom@tsou.cc> | 2017-04-03 18:06:48 +0000 |
commit | 6031734f448c6308d67b1ee464a13d60b33cd843 (patch) | |
tree | 300f6980e2670802970a1924972d4c8607799c6d /Transceiver52M/osmo-trx.cpp | |
parent | 5d2a36a1137ea725b679655aec703a9fb0b9c243 (diff) |
Transceiver: Remove unsigned negative compares
Change-Id: I49f30699786c52736ef334dae61f7bbd65d878d5
Fixes: Coverity CID 149353, 149356
Diffstat (limited to 'Transceiver52M/osmo-trx.cpp')
-rw-r--r-- | Transceiver52M/osmo-trx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Transceiver52M/osmo-trx.cpp b/Transceiver52M/osmo-trx.cpp index 5e81586..b36c081 100644 --- a/Transceiver52M/osmo-trx.cpp +++ b/Transceiver52M/osmo-trx.cpp @@ -168,7 +168,7 @@ bool trx_setup_config(struct trx_config *config) if (!config->chans) config->chans = DEFAULT_CHANS; - if (config->mcbts && ((config->chans < 0) || (config->chans > 5))) { + if (config->mcbts && config->chans > 5) { std::cout << "Unsupported number of channels" << std::endl; return false; } |