aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/main_80211_toolbar.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2012-06-21 18:07:52 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2012-06-21 18:07:52 +0000
commit5cfd2561f876f39eb122a599a8bba6a13855b4fd (patch)
treee909d1f55a1395a78b4989035507c5996d257a5b /ui/gtk/main_80211_toolbar.c
parent1785ed1ee02003f9806ca0a1f918141a551ffe0d (diff)
ws80211_init() only returned ENOTSUP back when it could be a stub when we
did not HAVE_LIBNL. Now that we only compile the modules when we HAVE_LIBNL (and thus the stub no longer exists) there's no need to check for it. svn path=/trunk/; revision=43430
Diffstat (limited to 'ui/gtk/main_80211_toolbar.c')
-rw-r--r--ui/gtk/main_80211_toolbar.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ui/gtk/main_80211_toolbar.c b/ui/gtk/main_80211_toolbar.c
index 1373f2c43f..d12873c06b 100644
--- a/ui/gtk/main_80211_toolbar.c
+++ b/ui/gtk/main_80211_toolbar.c
@@ -411,11 +411,9 @@ ws80211_toolbar_new(void)
toolbar_redraw_all();
ret = ws80211_init();
- if (ret == -ENOTSUP)
- tb80211_set_info("<b>Wireless support not enabled</b>");
- else if(ret)
+ if(ret) {
tb80211_set_info("<b>Failed to initialize ws80211</b>");
- else {
+ } else {
tb80211_update_interfaces();
}