From nobody Tue Apr 05 04:32:10 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8E9651A90126; Tue, 5 Apr 2022 04:32:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KXZVg1TNmz4g5L; Tue, 5 Apr 2022 04:32:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133131; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fCSagK8sZ0DcQpZL/o3eAOaEshQG83YvINaMjYXf9kQ=; b=vI7qB79zELZVO61P/Y39C+7+8aUBXuTbTpk72/CwgqO4oBWPJCaUe4OOpDQNb9DyGDottk u8yC0VcPXtClWfq2UBkngkhRAj8FZTv6MoqAZalpMOsP1RsD+YOQ+pyb7c17BwP/sJlMSr ovDrnIW5XS7N27kAEsPwrKFDoOC0WTLCeLcPJ9ldxAiwBi7PBBGuIKoigKPQHAX7pU4HBE Cp3YfVF2FZLU7oD9to+4BGZ5OCM6lQukOOzLxElqzhNwa010XCkCG2F5cX5uKqXE1xDzaw 7/pT28yMxbMUKi2A2W08Hz8TLsFId1mpKMBwRxiNeqeQ+kwJD1goAfe4bjBKLA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C22BA1FA6A; Tue, 5 Apr 2022 04:32:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2354WAGR008653; Tue, 5 Apr 2022 04:32:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2354WAmg008652; Tue, 5 Apr 2022 04:32:10 GMT (envelope-from git) Date: Tue, 5 Apr 2022 04:32:10 GMT Message-Id: <202204050432.2354WAmg008652@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: a9e022d3d75e - main - bwn_lo_measure_gain_values: eliminate write only trsw_rx variable List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a9e022d3d75e33f27c3e6bbdc2445bf7c8800994 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133131; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fCSagK8sZ0DcQpZL/o3eAOaEshQG83YvINaMjYXf9kQ=; b=rojnNShvFZLp3K6O8sYxFQ4Cwax/hE8kWsQninhGKrQhrvHheJsywyNe0td5ZDOzW6q3DO 87xToc8effCDlLeNvEHKsxos/ob2cuTFKx7EHPVq/S9oSV7BK4Ri1ALdQVIR8f1jZchW3d s2b77Yhv9ibN+bJBaRgTyqcdeJX3Kr6d159oF0q6pwqsuPvHOASjBQivwS0bdfg05dV0dd JNckKhEAgJttYtj2ZY2UH5A2OI1wCdTAXiADHpGNObk/UxFiO/6A78tUXOFcVk2CMZDtLD 7JG9pg2aOEmh/JuklZK+0DQ/FlH+xwYMmJrf8rS1fswQxFJ5xghpnYLZ5pCTuA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649133131; a=rsa-sha256; cv=none; b=bPyED58uE9SG2EyymKjzvNdQjKVyjjiSfJRPIBsxslaNtkKoMWrFy7lMbnv/LhLYNycjhw Fq7j4/cOkgdbkx6raWx+gomemHCa12o5m6gTL+S+DL1pamBa5uG28OXhUUuU1uVh4EA0jG wvBhekE+8rvXlyheH/8nc44r+HyR7o3QyQdhSs/e5R4qQEST2QB2VRu2z45qGf5AXA3Ckd pw67um4p7wZbgX+sD3MlFS8brxvuNDX0JCoU3HV2Z8NIb3dsumHpt3BsGEyMgMFmBiTj8o Yt8NHCoW8iKFgIXmzoPDYbJx52Akj0nfUkMM3kajDj5qqcDHCd1t1TlgqiKXqA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=a9e022d3d75e33f27c3e6bbdc2445bf7c8800994 commit a9e022d3d75e33f27c3e6bbdc2445bf7c8800994 Author: Warner Losh AuthorDate: 2022-04-05 00:02:33 +0000 Commit: Warner Losh 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;