Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ingo Molnar and committed by
John W. Linville
020cf6ba 02969b38

+2 -2
+2 -2
net/wireless/reg.c
··· 343 343 return 0; 344 344 return -EALREADY; 345 345 } 346 - if (WARN_ON(!is_alpha2_set(alpha2) || !is_an_alpha2(alpha2)), 346 + if (WARN(!is_alpha2_set(alpha2) || !is_an_alpha2(alpha2), 347 347 "Invalid Country IE regulatory hint passed " 348 - "to the wireless core\n") 348 + "to the wireless core\n")) 349 349 return -EINVAL; 350 350 /* We ignore Country IE hints for now, as we haven't yet 351 351 * added the dot11MultiDomainCapabilityEnabled flag