Date: Sun, 30 Aug 2015 08:46:50 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r287302 - head/sys/contrib/dev/ath/ath_hal/ar9300 Message-ID: <201508300846.t7U8kovc024036@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Sun Aug 30 08:46:50 2015 New Revision: 287302 URL: https://svnweb.freebsd.org/changeset/base/287302 Log: Fix compilation error on gcc-5.2.0 - it now warns on non-paranthen'ed logical negation when used in this fashion. Tested: * compile only Modified: head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_ani.c Modified: head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_ani.c ============================================================================== --- head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_ani.c Sun Aug 30 08:38:59 2015 (r287301) +++ head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_ani.c Sun Aug 30 08:46:50 2015 (r287302) @@ -539,7 +539,7 @@ skip_ws_det: OS_REG_CLR_BIT(ah, AR_PHY_SFCORR_LOW, AR_PHY_SFCORR_LOW_USE_SELF_CORR_LOW); } - if (!is_on != ani_state->ofdm_weak_sig_detect_off) { + if ((!is_on) != ani_state->ofdm_weak_sig_detect_off) { HALDEBUG(ah, HAL_DEBUG_ANI, "%s: ** ch %d: ofdm weak signal: %s=>%s\n", __func__, chan->ic_freq, @@ -684,7 +684,7 @@ skip_ws_det: OS_REG_RMW_FIELD(ah, AR_PHY_MRC_CCK_CTRL, AR_PHY_MRC_CCK_MUX_REG, is_on); } - if (!is_on != ani_state->mrc_cck_off) { + if ((!is_on) != ani_state->mrc_cck_off) { HALDEBUG(ah, HAL_DEBUG_ANI, "%s: ** ch %d: MRC CCK: %s=>%s\n", __func__, chan->ic_freq, !ani_state->mrc_cck_off ? "on" : "off", is_on ? "on" : "off");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508300846.t7U8kovc024036>