From owner-svn-src-head@FreeBSD.ORG Tue Feb 10 19:23:25 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 808C11065676; Tue, 10 Feb 2009 19:23:25 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 6D8248FC17; Tue, 10 Feb 2009 19:23:25 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n1AJNP37001981; Tue, 10 Feb 2009 19:23:25 GMT (envelope-from sam@svn.freebsd.org) Received: (from sam@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n1AJNPtn001980; Tue, 10 Feb 2009 19:23:25 GMT (envelope-from sam@svn.freebsd.org) Message-Id: <200902101923.n1AJNPtn001980@svn.freebsd.org> From: Sam Leffler Date: Tue, 10 Feb 2009 19:23:25 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r188444 - head/sys/dev/ath/ath_hal/ar5212 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Feb 2009 19:23:26 -0000 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; }