aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43legacy/main.c
diff options
context:
space:
mode:
authorStefano Brivio <stefano.brivio@polimi.it>2008-02-08 00:31:39 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-02-29 15:37:06 -0500
commit4688be308f35f1e0099140a179d95c5e63b2319d (patch)
tree56212f2e95edd9d20fe5deadd9679b69552caa0a /drivers/net/wireless/b43legacy/main.c
parenta297170dae2595f31b02e4553a3b217e115a15cf (diff)
b43legacy: fix B43legacy_WARN_ON macro
Fix the B43legacy_WARN_ON macro so that it will evaluate expressions. Signed-off-by: Stefano Brivio <stefano.brivio@polimi.it> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43legacy/main.c')
-rw-r--r--drivers/net/wireless/b43legacy/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/b43legacy/main.c b/drivers/net/wireless/b43legacy/main.c
index 62e679a1c05f..82953dd0bae0 100644
--- a/drivers/net/wireless/b43legacy/main.c
+++ b/drivers/net/wireless/b43legacy/main.c
@@ -1068,10 +1068,8 @@ static const u8 *b43legacy_generate_probe_resp(struct b43legacy_wldev *dev,
1068 B43legacy_WARN_ON(ie_start != offsetof(struct ieee80211_mgmt, 1068 B43legacy_WARN_ON(ie_start != offsetof(struct ieee80211_mgmt,
1069 u.beacon.variable)); 1069 u.beacon.variable));
1070 1070
1071 if (src_size < ie_start) { 1071 if (B43legacy_WARN_ON(src_size < ie_start))
1072 B43legacy_WARN_ON(1);
1073 return NULL; 1072 return NULL;
1074 }
1075 1073
1076 dest_data = kmalloc(src_size, GFP_ATOMIC); 1074 dest_data = kmalloc(src_size, GFP_ATOMIC);
1077 if (unlikely(!dest_data)) 1075 if (unlikely(!dest_data))