summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/airo.c
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2009-11-26 00:55:11 +0300
committerJohn W. Linville <linville@tuxdriver.com>2009-12-04 21:30:40 +0300
commit1f351e3840dcf25aaddec2d908c3ab06ae105ee6 (patch)
treef641c01e8f141d974b9f474bb386c5b664b55188 /drivers/net/wireless/airo.c
parenta5186e997524578b4ba91390ad947c767450dac8 (diff)
downloadlinux-1f351e3840dcf25aaddec2d908c3ab06ae105ee6.tar.xz
airo: Fix integer overflow warning
On BigEndian gcc complains: drivers/net/wireless/airo.c: In function ‘sniffing_mode’: drivers/net/wireless/airo.c:4809: warning: integer overflow in expression Fix this by doing the bitwise AND on the host-endian value. Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/airo.c')
-rw-r--r--drivers/net/wireless/airo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c
index 4eec87c3be2b..4331d675fcc6 100644
--- a/drivers/net/wireless/airo.c
+++ b/drivers/net/wireless/airo.c
@@ -4806,7 +4806,7 @@ static int airo_config_commit(struct net_device *dev,
static inline int sniffing_mode(struct airo_info *ai)
{
- return le16_to_cpu(ai->config.rmode & RXMODE_MASK) >=
+ return (le16_to_cpu(ai->config.rmode) & le16_to_cpu(RXMODE_MASK)) >=
le16_to_cpu(RXMODE_RFMON);
}