From a9e022d3d75e33f27c3e6bbdc2445bf7c8800994 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 4 Apr 2022 18:02:33 -0600 Subject: [PATCH] bwn_lo_measure_gain_values: eliminate write only trsw_rx variable Sponsored by: Netflix --- sys/dev/bwn/if_bwn_phy_g.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/dev/bwn/if_bwn_phy_g.c b/sys/dev/bwn/if_bwn_phy_g.c index 1659eb2a99b..09f8f0e569e 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;