svn commit: r188444 - head/sys/dev/ath/ath_hal/ar5212

Sam Leffler sam at FreeBSD.org
Tue Feb 10 11:23:26 PST 2009


Author: sam
Date: Tue Feb 10 19:23:25 2009
New Revision: 188444
URL: http://svn.freebsd.org/changeset/base/188444

Log:
  consolidate conditional code

Modified:
  head/sys/dev/ath/ath_hal/ar5212/ar5212_ani.c

Modified: head/sys/dev/ath/ath_hal/ar5212/ar5212_ani.c
==============================================================================
--- head/sys/dev/ath/ath_hal/ar5212/ar5212_ani.c	Tue Feb 10 17:50:03 2009	(r188443)
+++ head/sys/dev/ath/ath_hal/ar5212/ar5212_ani.c	Tue Feb 10 19:23:25 2009	(r188444)
@@ -278,14 +278,12 @@ ar5212AniControl(struct ath_hal *ah, HAL
 		if (on) {
 			OS_REG_SET_BIT(ah, AR_PHY_SFCORR_LOW,
 				AR_PHY_SFCORR_LOW_USE_SELF_CORR_LOW);
+			ahp->ah_stats.ast_ani_ofdmon++;
 		} else {
 			OS_REG_CLR_BIT(ah, AR_PHY_SFCORR_LOW,
 				AR_PHY_SFCORR_LOW_USE_SELF_CORR_LOW);
-		}
-		if (on)
-			ahp->ah_stats.ast_ani_ofdmon++;
-		else
 			ahp->ah_stats.ast_ani_ofdmoff++;
+		}
 		aniState->ofdmWeakSigDetectOff = !on;
 		break;
 	}


More information about the svn-src-head mailing list