diff options
author | Ingo Molnar | 2008-11-23 20:09:54 +0100 |
---|---|---|
committer | John W. Linville | 2008-11-25 16:13:09 -0500 |
commit | 020cf6ba7a91ccc5db359f91e9abba175fd3a0aa (patch) | |
tree | 5a6b21a4e81d69bcb550e38a136d35f800b726f8 /net | |
parent | 02969b38e6f7cef80e71d673d1e512e029a7009f (diff) |
net/wireless/reg.c: fix bad WARN_ON in if statement
fix:
net/wireless/reg.c:348:29: error: macro "if" passed 2 arguments, but takes just 1
triggered by the branch-tracer.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/wireless/reg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 626dbb688499..eb3b1a9f9b12 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -343,9 +343,9 @@ static int ignore_request(struct wiphy *wiphy, enum reg_set_by set_by, return 0; return -EALREADY; } - if (WARN_ON(!is_alpha2_set(alpha2) || !is_an_alpha2(alpha2)), + if (WARN(!is_alpha2_set(alpha2) || !is_an_alpha2(alpha2), "Invalid Country IE regulatory hint passed " - "to the wireless core\n") + "to the wireless core\n")) return -EINVAL; /* We ignore Country IE hints for now, as we haven't yet * added the dot11MultiDomainCapabilityEnabled flag |