Date: Tue, 5 Apr 2022 04:32:10 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: a9e022d3d75e - main - bwn_lo_measure_gain_values: eliminate write only trsw_rx variable Message-ID: <202204050432.2354WAmg008652@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=a9e022d3d75e33f27c3e6bbdc2445bf7c8800994 commit a9e022d3d75e33f27c3e6bbdc2445bf7c8800994 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-04-05 00:02:33 +0000 Commit: Warner Losh <imp@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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204050432.2354WAmg008652>