diff options
author | Adrian Chadd <adrian@FreeBSD.org> | 2024-12-29 05:25:11 +0000 |
---|---|---|
committer | Adrian Chadd <adrian@FreeBSD.org> | 2024-12-31 01:35:37 +0000 |
commit | 18fabd338ce789cd91f8de255153d9b9d9a86cba (patch) | |
tree | 8e9c42c2d624f93ba2bb2dd5d732f65e11cc800d | |
parent | 4fad98b5c8d77c771c2dd14e3d4ce517b4bb92d9 (diff) |
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
-rw-r--r-- | sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c | 7 |
1 files 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 |