aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVidush <vidush.vishwanath@ettus.com>2018-04-23 11:09:26 -0700
committerMartin Braun <martin.braun@ettus.com>2018-04-30 16:09:16 -0700
commit2eab720f064102a5f7c2ae8903faf8c315a02a51 (patch)
tree68f618197ad1bf94139a94f93cb5706de1f8bc60
parentc20678676f3f676e52e5b7f949deeafaac68ca7f (diff)
downloaduhd-2eab720f064102a5f7c2ae8903faf8c315a02a51.tar.gz
uhd-2eab720f064102a5f7c2ae8903faf8c315a02a51.tar.bz2
uhd-2eab720f064102a5f7c2ae8903faf8c315a02a51.zip
Removed unecessary == operation.
-rw-r--r--host/lib/include/uhdlib/rfnoc/radio_ctrl_impl.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/include/uhdlib/rfnoc/radio_ctrl_impl.hpp b/host/lib/include/uhdlib/rfnoc/radio_ctrl_impl.hpp
index 6a1d538dc..a86edf67e 100644
--- a/host/lib/include/uhdlib/rfnoc/radio_ctrl_impl.hpp
+++ b/host/lib/include/uhdlib/rfnoc/radio_ctrl_impl.hpp
@@ -194,11 +194,11 @@ protected: // TODO see what's protected and what's private
inline bool _is_streamer_active(uhd::direction_t dir, const size_t chan) const {
switch (dir) {
case uhd::TX_DIRECTION:
- return _tx_streamer_active.count(chan) == 1 ? _tx_streamer_active.at(chan) : false;
+ return _tx_streamer_active.count(chan) ? _tx_streamer_active.at(chan) : false;
case uhd::RX_DIRECTION:
- return _rx_streamer_active.count(chan) == 1 ? _rx_streamer_active.at(chan) : false;
+ return _rx_streamer_active.count(chan) ? _rx_streamer_active.at(chan) : false;
case uhd::DX_DIRECTION:
- return (_tx_streamer_active.count(chan) == 1 and _rx_streamer_active.count(chan) == 1) ?
+ return (_tx_streamer_active.count(chan) and _rx_streamer_active.count(chan)) ?
_rx_streamer_active.at(chan) and _tx_streamer_active.at(chan) : false;
default:
return false;