aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>2010-08-03 08:22:25 +0300
committerJohn W. Linville <linville@tuxdriver.com>2010-08-04 15:28:37 -0400
commit93c08c32914264f539baf7f04cce310a0dd30a7a (patch)
treec59d790b05399ff4ae247f80d00cc339550bf232 /net
parent93c0584ca92a76bd458c7fd505b1747901315156 (diff)
downloadkernel_samsung_crespo-93c08c32914264f539baf7f04cce310a0dd30a7a.zip
kernel_samsung_crespo-93c08c32914264f539baf7f04cce310a0dd30a7a.tar.gz
kernel_samsung_crespo-93c08c32914264f539baf7f04cce310a0dd30a7a.tar.bz2
mac80211: Fix compilation warning when CONFIG_INET is not set
The warning is: net/mac80211/main.c:688: warning: label ‘fail_ifa’ defined but not used Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 7cc4f91..798a91b 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -685,10 +685,12 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
return 0;
+#ifdef CONFIG_INET
fail_ifa:
pm_qos_remove_notifier(PM_QOS_NETWORK_LATENCY,
&local->network_latency_notifier);
rtnl_lock();
+#endif
fail_pm_qos:
ieee80211_led_exit(local);
ieee80211_remove_interfaces(local);