bwn_lo_measure_gain_values: eliminate write only trsw_rx variable

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2022-04-04 18:02:33 -06:00
parent 87a4328651
commit a9e022d3d7

View file

@ -2136,14 +2136,12 @@ bwn_lo_measure_gain_values(struct bwn_mac *mac, int16_t max_rx_gain,
max_rx_gain = 0;
if (BWN_HAS_LOOPBACK(phy)) {
int trsw_rx = 0;
int trsw_rx_gain;
if (use_trsw_rx) {
trsw_rx_gain = pg->pg_trsw_rx_gain / 2;
if (max_rx_gain >= trsw_rx_gain) {
trsw_rx_gain = max_rx_gain - trsw_rx_gain;
trsw_rx = 0x20;
}
} else
trsw_rx_gain = max_rx_gain;