brcm80211: smac: precendence bug in wlc_phy_attach()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 15 Dec 2011 11:23:32 +0000 (14:23 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 15 Dec 2011 19:46:38 +0000 (14:46 -0500)
commitaa1f2f0a3218a9b6ce979fca3d6ebdb1c5544dd8
tree59ab8f7ad97a7607722c109d0084e5a9188b7202
parent29942bc125374b5aa049a438fb628ea729538ca5
brcm80211: smac: precendence bug in wlc_phy_attach()

Negate has higher precendence than compare and since neither zero nor
one are equal to four or eight the original condition is always false.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmsmac/phy/phy_cmn.c