Skip to content

Commit

Permalink
net/wireless/reg.c: fix bad WARN_ON in if statement
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ingo Molnar authored and John W. Linville committed Nov 25, 2008
1 parent 02969b3 commit 020cf6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 020cf6b

Please sign in to comment.