diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2012-06-21 18:07:52 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2012-06-21 18:07:52 +0000 |
commit | 5cfd2561f876f39eb122a599a8bba6a13855b4fd (patch) | |
tree | e909d1f55a1395a78b4989035507c5996d257a5b /ui/gtk/main_80211_toolbar.c | |
parent | 1785ed1ee02003f9806ca0a1f918141a551ffe0d (diff) | |
download | wireshark-5cfd2561f876f39eb122a599a8bba6a13855b4fd.tar.gz wireshark-5cfd2561f876f39eb122a599a8bba6a13855b4fd.tar.bz2 wireshark-5cfd2561f876f39eb122a599a8bba6a13855b4fd.zip |
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.c | 6 |
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(); } |