diff options
author | adrian <adrian@FreeBSD.org> | 2015-08-30 08:46:50 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2015-08-30 08:46:50 +0000 |
commit | 6d14828b67bb3ed3b0f3b5cd66eafadf669d163a (patch) | |
tree | bf342adaa0aea19cab5882c0197c8330439271ea /sys/contrib/dev | |
parent | bbfec22d960ab209ec12aa1ef501e066ebc315af (diff) | |
download | FreeBSD-src-6d14828b67bb3ed3b0f3b5cd66eafadf669d163a.zip FreeBSD-src-6d14828b67bb3ed3b0f3b5cd66eafadf669d163a.tar.gz |
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
Diffstat (limited to 'sys/contrib/dev')
-rw-r--r-- | sys/contrib/dev/ath/ath_hal/ar9300/ar9300_ani.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_ani.c b/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_ani.c index 9c2c3ed..a3e7fae 100644 --- a/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_ani.c +++ b/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_ani.c @@ -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"); |