Commit 5f803b22 authored by Aaron Lawrence's avatar Aaron Lawrence Committed by Greg Kroah-Hartman

staging: rtl8192e: rtllib_crypt_wep: multiple blank lines removal

Removal of multiple unnecessary blank lines in accordance with the
Linux kernel coding-style regulations. Said issues ware detected on
this file by the checkpatch script.
Signed-off-by: default avatarAaron Lawrence <t4rmin@zohomail.com>
Link: https://lore.kernel.org/r/20221025104402.xvbfobi7sdnwlqs2@plymouthSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6e006508
...@@ -27,7 +27,6 @@ struct prism2_wep_data { ...@@ -27,7 +27,6 @@ struct prism2_wep_data {
struct arc4_ctx tx_ctx_arc4; struct arc4_ctx tx_ctx_arc4;
}; };
static void *prism2_wep_init(int keyidx) static void *prism2_wep_init(int keyidx)
{ {
struct prism2_wep_data *priv; struct prism2_wep_data *priv;
...@@ -46,7 +45,6 @@ static void *prism2_wep_init(int keyidx) ...@@ -46,7 +45,6 @@ static void *prism2_wep_init(int keyidx)
return priv; return priv;
} }
static void prism2_wep_deinit(void *priv) static void prism2_wep_deinit(void *priv)
{ {
kfree_sensitive(priv); kfree_sensitive(priv);
...@@ -120,7 +118,6 @@ static int prism2_wep_encrypt(struct sk_buff *skb, int hdr_len, void *priv) ...@@ -120,7 +118,6 @@ static int prism2_wep_encrypt(struct sk_buff *skb, int hdr_len, void *priv)
return 0; return 0;
} }
/* Perform WEP decryption on given struct buffer. Buffer includes whole WEP /* Perform WEP decryption on given struct buffer. Buffer includes whole WEP
* part of the frame: IV (4 bytes), encrypted payload (including SNAP header), * part of the frame: IV (4 bytes), encrypted payload (including SNAP header),
* ICV (4 bytes). len includes both IV and ICV. * ICV (4 bytes). len includes both IV and ICV.
...@@ -180,7 +177,6 @@ static int prism2_wep_decrypt(struct sk_buff *skb, int hdr_len, void *priv) ...@@ -180,7 +177,6 @@ static int prism2_wep_decrypt(struct sk_buff *skb, int hdr_len, void *priv)
return 0; return 0;
} }
static int prism2_wep_set_key(void *key, int len, u8 *seq, void *priv) static int prism2_wep_set_key(void *key, int len, u8 *seq, void *priv)
{ {
struct prism2_wep_data *wep = priv; struct prism2_wep_data *wep = priv;
...@@ -194,7 +190,6 @@ static int prism2_wep_set_key(void *key, int len, u8 *seq, void *priv) ...@@ -194,7 +190,6 @@ static int prism2_wep_set_key(void *key, int len, u8 *seq, void *priv)
return 0; return 0;
} }
static int prism2_wep_get_key(void *key, int len, u8 *seq, void *priv) static int prism2_wep_get_key(void *key, int len, u8 *seq, void *priv)
{ {
struct prism2_wep_data *wep = priv; struct prism2_wep_data *wep = priv;
...@@ -207,7 +202,6 @@ static int prism2_wep_get_key(void *key, int len, u8 *seq, void *priv) ...@@ -207,7 +202,6 @@ static int prism2_wep_get_key(void *key, int len, u8 *seq, void *priv)
return wep->key_len; return wep->key_len;
} }
static void prism2_wep_print_stats(struct seq_file *m, void *priv) static void prism2_wep_print_stats(struct seq_file *m, void *priv)
{ {
struct prism2_wep_data *wep = priv; struct prism2_wep_data *wep = priv;
...@@ -231,13 +225,11 @@ static struct lib80211_crypto_ops rtllib_crypt_wep = { ...@@ -231,13 +225,11 @@ static struct lib80211_crypto_ops rtllib_crypt_wep = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
}; };
static int __init rtllib_crypto_wep_init(void) static int __init rtllib_crypto_wep_init(void)
{ {
return lib80211_register_crypto_ops(&rtllib_crypt_wep); return lib80211_register_crypto_ops(&rtllib_crypt_wep);
} }
static void __exit rtllib_crypto_wep_exit(void) static void __exit rtllib_crypto_wep_exit(void)
{ {
lib80211_unregister_crypto_ops(&rtllib_crypt_wep); lib80211_unregister_crypto_ops(&rtllib_crypt_wep);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment