aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2022-06-04 09:52:22 +0200
committerskooNI <60897865+skooNI@users.noreply.github.com>2022-07-20 15:57:20 -0500
commitf96b8e7059b53958fa5fa8263160f26174a3d1b9 (patch)
treec67ab243f6463f951ec047dcf5af215bb9f16353
parentuhd: refactor get_all_addrs to remove duplicates (diff)
downloaduhd-f96b8e7059b53958fa5fa8263160f26174a3d1b9.tar.xz
uhd-f96b8e7059b53958fa5fa8263160f26174a3d1b9.zip
usrp2: Remove unused code segments
This fixes compiler warnings under Clang12.
-rw-r--r--host/lib/usrp/usrp2/io_impl.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp
index a966f91ea..c58787e3e 100644
--- a/host/lib/usrp/usrp2/io_impl.cpp
+++ b/host/lib/usrp/usrp2/io_impl.cpp
@@ -362,9 +362,6 @@ void usrp2_impl::update_rx_subdev_spec(
// compute the new occupancy and resize
_mbc[which_mb].rx_chan_occ = spec.size();
- size_t nchan = 0;
- for (const std::string& mb : _mbc.keys())
- nchan += _mbc[mb].rx_chan_occ;
}
void usrp2_impl::update_tx_subdev_spec(
@@ -385,9 +382,6 @@ void usrp2_impl::update_tx_subdev_spec(
// compute the new occupancy and resize
_mbc[which_mb].tx_chan_occ = spec.size();
- size_t nchan = 0;
- for (const std::string& mb : _mbc.keys())
- nchan += _mbc[mb].tx_chan_occ;
}
/***********************************************************************