From: mentor Date: Mon, 17 Dec 2007 01:16:06 +0000 (+0000) Subject: Use standard boolean normalisation in r3062 X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;h=86b3543c144ad52bb7221a59df8062ac3662de2c;p=madwifi%2F.git Use standard boolean normalisation in r3062 git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3065 0192ed92-7a03-0410-a25b-9323aeb14dbd --- diff --git a/net80211/ieee80211_power.c b/net80211/ieee80211_power.c index 0b0ba94..ff38cfd 100644 --- a/net80211/ieee80211_power.c +++ b/net80211/ieee80211_power.c @@ -347,7 +347,7 @@ ieee80211_sta_pwrsave(struct ieee80211vap *vap, int enable) struct ieee80211_node *ni = vap->iv_bss; int qlen; - if ((enable != 0) == (IEEE80211_VAP_IS_SLEEPING(vap) != 0)) + if (!!enable == !!IEEE80211_VAP_IS_SLEEPING(vap)) /* Bool. normalise */ return; IEEE80211_NOTE(vap, IEEE80211_MSG_POWER, ni,