diff options
author | Moritz Fischer <moritz.fischer@ettus.com> | 2019-01-27 13:13:01 -0800 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2019-02-15 11:37:03 -0800 |
commit | 1fa6be8e8796a6fd4dc5d382dd0067db47dccdf5 (patch) | |
tree | bffcfb808fe36e9f744aefce307546088410c31b /mpm/lib/mykonos | |
parent | 52138314a4daa8140b4dabca5ca4a9ffc6a8ff84 (diff) | |
download | uhd-1fa6be8e8796a6fd4dc5d382dd0067db47dccdf5.tar.gz uhd-1fa6be8e8796a6fd4dc5d382dd0067db47dccdf5.tar.bz2 uhd-1fa6be8e8796a6fd4dc5d382dd0067db47dccdf5.zip |
mpm: lib: mykonos: ad937x_device: Remove unused variable
Remove unused 'coerced_value' variable since nobody reads
it ever.
Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
Diffstat (limited to 'mpm/lib/mykonos')
-rw-r--r-- | mpm/lib/mykonos/ad937x_device.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/mpm/lib/mykonos/ad937x_device.cpp b/mpm/lib/mykonos/ad937x_device.cpp index 144b813ae..6bf22059b 100644 --- a/mpm/lib/mykonos/ad937x_device.cpp +++ b/mpm/lib/mykonos/ad937x_device.cpp @@ -551,12 +551,10 @@ double ad937x_device::set_bw_filter(const direction_t direction, const double va double ad937x_device::set_gain( const direction_t direction, const chain_t chain, const double value) { - double coerced_value; const auto state = _move_to_config_state(); switch (direction) { case TX_DIRECTION: { const uint16_t attenuation = _convert_tx_gain_to_mykonos(value); - coerced_value = static_cast<double>(attenuation); std::function<mykonosErr_t(mykonosDevice_t*, uint16_t)> func; switch (chain) { @@ -574,7 +572,6 @@ double ad937x_device::set_gain( } case RX_DIRECTION: { const uint8_t gain = _convert_rx_gain_to_mykonos(value); - coerced_value = static_cast<double>(gain); std::function<mykonosErr_t(mykonosDevice_t*, uint8_t)> func; switch (chain) { |