summaryrefslogtreecommitdiff
path: root/net/mac80211/main.c
diff options
context:
space:
mode:
authorLuca Coelho <luciano.coelho@intel.com>2020-01-31 14:12:47 +0300
committerJohannes Berg <johannes.berg@intel.com>2020-02-07 14:40:34 +0300
commit4a65cc2437ce4a643c24b357d849e3ff773efed1 (patch)
tree748c71d80432c2f0ee8875a6bb576b3ce7e7d257 /net/mac80211/main.c
parent07b83d2ecd2f812c32d1f852f853375f50e1ccf2 (diff)
downloadlinux-4a65cc2437ce4a643c24b357d849e3ff773efed1.tar.xz
mac80211: make ieee80211_wep_init() return void
This function always returns 0, so there's no point in returning int. Make it void and remove the impossible error-path when calling it. Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Link: https://lore.kernel.org/r/20200131111300.891737-11-luca@coelho.fi Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r--net/mac80211/main.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 287dd0588476..d91bcef738dc 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -1185,10 +1185,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
if (!local->hw.weight_multiplier)
local->hw.weight_multiplier = 1;
- result = ieee80211_wep_init(local);
- if (result < 0)
- wiphy_debug(local->hw.wiphy, "Failed to initialize wep: %d\n",
- result);
+ ieee80211_wep_init(local);
local->hw.conf.flags = IEEE80211_CONF_IDLE;