diff options
author | Warner Losh <imp@FreeBSD.org> | 2022-07-08 17:53:29 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2022-10-02 04:25:52 +0000 |
commit | 318b497ab92bdbe2e0f4f52df5a96f74d5ee40a1 (patch) | |
tree | 4e05778b3712b345f9e98f79d25d3fc902ae90b8 /sys/dev/bwn | |
parent | 3fb60281e10798801e3f47736379e5df2cb22eba (diff) | |
download | src-318b497ab92bdbe2e0f4f52df5a96f74d5ee40a1.tar.gz src-318b497ab92bdbe2e0f4f52df5a96f74d5ee40a1.zip |
bwn_lo_measure_gain_values: eliminate write only trsw_rx variable
Sponsored by: Netflix
(cherry picked from commit a9e022d3d75e33f27c3e6bbdc2445bf7c8800994)
Diffstat (limited to 'sys/dev/bwn')
-rw-r--r-- | sys/dev/bwn/if_bwn_phy_g.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/bwn/if_bwn_phy_g.c b/sys/dev/bwn/if_bwn_phy_g.c index 1659eb2a99bb..09f8f0e569e6 100644 --- a/sys/dev/bwn/if_bwn_phy_g.c +++ b/sys/dev/bwn/if_bwn_phy_g.c @@ -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; |