From: Johannes Berg Date: Mon, 3 Dec 2012 18:12:02 +0000 (+0100) Subject: regulatory: remove useless warning X-Git-Tag: v3.9-rc1~139^2~242^2^2~143 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=0ba857ad671aa8aa2a1276aa7a0c79abd0575146;p=~emulex%2Finfiniband.git regulatory: remove useless warning Even if it never happens and is hidden behind the debug config option, it's completely useless: the calltrace will only show module loading. Acked-by: Luis R. Rodriguez Signed-off-by: Johannes Berg --- diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 946cd5320ef..b63bdf899a7 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -2322,10 +2322,6 @@ int __init regulatory_init(void) * errors as non-fatal. */ pr_err("kobject_uevent_env() was unable to call CRDA during init\n"); -#ifdef CONFIG_CFG80211_REG_DEBUG - /* We want to find out exactly why when debugging */ - WARN_ON(err); -#endif } /*