diff options
author | Luca Coelho <luciano.coelho@intel.com> | 2020-01-31 12:12:47 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2020-02-07 12:40:34 +0100 |
commit | 4a65cc2437ce4a643c24b357d849e3ff773efed1 (patch) | |
tree | 748c71d80432c2f0ee8875a6bb576b3ce7e7d257 /net/mac80211/wep.h | |
parent | mac80211: allow changing TX-related netdev features (diff) | |
download | linux-4a65cc2437ce4a643c24b357d849e3ff773efed1.tar.xz linux-4a65cc2437ce4a643c24b357d849e3ff773efed1.zip |
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/wep.h')
-rw-r--r-- | net/mac80211/wep.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/wep.h b/net/mac80211/wep.h index 997a034233c2..4ffe83554c67 100644 --- a/net/mac80211/wep.h +++ b/net/mac80211/wep.h @@ -13,7 +13,7 @@ #include "ieee80211_i.h" #include "key.h" -int ieee80211_wep_init(struct ieee80211_local *local); +void ieee80211_wep_init(struct ieee80211_local *local); int ieee80211_wep_encrypt_data(struct arc4_ctx *ctx, u8 *rc4key, size_t klen, u8 *data, size_t data_len); int ieee80211_wep_encrypt(struct ieee80211_local *local, |