The branch main has been updated by imp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=a9e022d3d75e33f27c3e6bbdc2445bf7c8800994

commit a9e022d3d75e33f27c3e6bbdc2445bf7c8800994
Author:     Warner Losh <i...@freebsd.org>
AuthorDate: 2022-04-05 00:02:33 +0000
Commit:     Warner Losh <i...@freebsd.org>
CommitDate: 2022-04-05 04:29:23 +0000

    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 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;

Reply via email to