git: 18fabd338ce7 - main - ath_hal_ar9300: quick refactor of tx/rx chain handling

From: Adrian Chadd <adrian_at_FreeBSD.org>
Date: Tue, 31 Dec 2024 01:36:04 UTC
The branch main has been updated by adrian:

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

commit 18fabd338ce789cd91f8de255153d9b9d9a86cba
Author:     Adrian Chadd <adrian@FreeBSD.org>
AuthorDate: 2024-12-29 05:25:11 +0000
Commit:     Adrian Chadd <adrian@FreeBSD.org>
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