From 1fa6be8e8796a6fd4dc5d382dd0067db47dccdf5 Mon Sep 17 00:00:00 2001 From: Moritz Fischer Date: Sun, 27 Jan 2019 13:13:01 -0800 Subject: mpm: lib: mykonos: ad937x_device: Remove unused variable Remove unused 'coerced_value' variable since nobody reads it ever. Signed-off-by: Moritz Fischer --- mpm/lib/mykonos/ad937x_device.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'mpm/lib/mykonos/ad937x_device.cpp') 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(attenuation); std::function 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(gain); std::function func; switch (chain) { -- cgit v1.2.3