From nobody Tue Dec 31 01:36:04 2024 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 4YMbCS5LfMz5jL8j; Tue, 31 Dec 2024 01:36:04 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YMbCS3jlWz4hkd; Tue, 31 Dec 2024 01:36:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735608964; 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=V5GI19VwBEkchj6+CAr3y1/hyqA1y8Ia55UimwzXEI0=; b=E6hjwzqyM624VkysiXunt7R1gZl68R52Nm9T1zdH5zWileVhdmA8EG/7yGNJkfSOGvD3O+ wm6W1zvXEK7+2IFG2zeSlyCcbP8Ko3eIgZgDw86Jsswmigx19qL6aCwBQlEwcHrV7qHlVB TEGhJK0fgOOCd2t8pRtHZOWX6xEKzM0pP+qgdJCmy2W0VZvnzlYPURGsY43gGuHeojLuN/ /XAW184TRu0xfIK5J33GEGidAgvUlqZWMptlauqvdWJIOzn51Bc7qqKbiu1FwzTwHGm0K5 8KSYUPIgxjUj7mjm61XjrFVRhSBkPoHAg2k4vwVCLGUaV5g3xCziU+ZK7jVIqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735608964; 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=V5GI19VwBEkchj6+CAr3y1/hyqA1y8Ia55UimwzXEI0=; b=WrOuSnblU9jiZBpaIo5tlSFMBe8CKDeDAhM0u8rysU8idoRaBgdTEkjl9ZS9ZNbiKwMMvJ 3BgoIQSAqYqEqq6QKh/ffzxp2SN9Xl4pw1r6SjpEIYjVtTF4zTLx2M3qBK5PsBdbaZcUEK ZcgQBTRxiDcK2LMxDL2UqaaselIGAr12+nQc1g8YnTyUQPwU4TP4qYqctbn88eBoy7/HW6 Xw4i6TUlE7BVpAN5HgrY6mSWU9QEkPs4nR0MY7WKwc/IlE7bcfkRA5fEDQW//M3Df6eXbZ iyEAu7EbPRKnT1RmUXJdRbfJTbmQK0c2zQOfpgRQfC31kiCEDLJTQpO0zJjLbw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735608964; a=rsa-sha256; cv=none; b=YimeOTET8BJKEk22UC1ifCN+DqqZH+703P+JGkxRya8y66JZtPwsr0wHaQt3ZcoudXGknL lLFuFJqHCxpqvNhs0knqleROxtQaKET2Kb/tqbwokxHn9DZOG56TrNv7kIhFEPUY5PKG7G P30xM8ilOrIPaUUT0LvIkLrTndzFy2h4277qAVv+qj3GBU70xPBhbpQZ8Xy2CU5hSieJAR DyTe8R+muwpTABZGALmJ6PhWaLMJJMesWrTw4LDjgsoU07cZowU6EzjSpGKOfCEzF+6JWC 8WQ5470DahzU7EuyKrsj0u2UsqEuh6XdsdYBll9cYQF+SuY8DfJQyXVGJraVCQ== 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 4YMbCS2pCZzJMh; Tue, 31 Dec 2024 01:36:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4BV1a4BJ060785; Tue, 31 Dec 2024 01:36:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BV1a4HN060782; Tue, 31 Dec 2024 01:36:04 GMT (envelope-from git) Date: Tue, 31 Dec 2024 01:36:04 GMT Message-Id: <202412310136.4BV1a4HN060782@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Adrian Chadd Subject: git: 18fabd338ce7 - main - ath_hal_ar9300: quick refactor of tx/rx chain handling 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: adrian X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 18fabd338ce789cd91f8de255153d9b9d9a86cba Auto-Submitted: auto-generated The branch main has been updated by adrian: URL: https://cgit.FreeBSD.org/src/commit/?id=18fabd338ce789cd91f8de255153d9b9d9a86cba commit 18fabd338ce789cd91f8de255153d9b9d9a86cba Author: Adrian Chadd AuthorDate: 2024-12-29 05:25:11 +0000 Commit: Adrian Chadd CommitDate: 2024-12-31 01:35:37 +0000 ath_hal_ar9300: quick refactor of tx/rx chain handling Use a temporary variable, make the lines shorter. Differential Revision: https://reviews.freebsd.org/D48239 Reviewed by: emaste --- sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c b/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c index 68e5f018cc6c..b6d711a981e7 100644 --- a/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c +++ b/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c @@ -43,11 +43,10 @@ static void ar9300SetChainMasks(struct ath_hal *ah, uint32_t tx_chainmask, uint32_t rx_chainmask) { + HAL_CAPABILITIES *pCap = &AH_PRIVATE(ah)->ah_caps; - AH9300(ah)->ah_tx_chainmask = - tx_chainmask & AH_PRIVATE(ah)->ah_caps.halTxChainMask; - AH9300(ah)->ah_rx_chainmask = - rx_chainmask & AH_PRIVATE(ah)->ah_caps.halRxChainMask; + AH9300(ah)->ah_tx_chainmask = tx_chainmask & pCap->halTxChainMask; + AH9300(ah)->ah_rx_chainmask = rx_chainmask & pCap->halRxChainMask; } static u_int