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>
このコミットが含まれているのは:
@@ -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;
|
||||
|
||||
|
新しいイシューから参照
ユーザーをブロックする