git: 318b497ab92b - stable/13 - bwn_lo_measure_gain_values: eliminate write only trsw_rx variable

From: Warner Losh <imp_at_FreeBSD.org>
Date: Sun, 02 Oct 2022 04:29:23 UTC
The branch stable/13 has been updated by imp:

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

commit 318b497ab92bdbe2e0f4f52df5a96f74d5ee40a1
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-08 17:53:29 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-10-02 04:25:52 +0000

    bwn_lo_measure_gain_values: eliminate write only trsw_rx variable
    
    Sponsored by:           Netflix
    
    (cherry picked from commit a9e022d3d75e33f27c3e6bbdc2445bf7c8800994)
---
 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;