aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsimran singhal <singhalsimran0@gmail.com>2017-02-11 15:26:09 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-02-12 07:42:59 -0500
commitba2e9d4105ee30ed1bbc82a2351ebf6103a40d26 (patch)
tree2eab0733191d8132d1942520a9dd78e9dcf5006f
parent3838eedf136fa5fd80d4a92931a5a456878e8185 (diff)
staging: rtl8192u: Removing multiple blank lines
This patch fixes the checkpatch warning by removing multiple blank lines. CHECK: Please don't use multiple blank lines Signed-off-by: simran singhal <singhalsimran0@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c
index 2dc25cc2c726..0ddd5ac71c32 100644
--- a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c
+++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c
@@ -90,7 +90,6 @@ fail:
90 return NULL; 90 return NULL;
91} 91}
92 92
93
94static void ieee80211_ccmp_deinit(void *priv) 93static void ieee80211_ccmp_deinit(void *priv)
95{ 94{
96 struct ieee80211_ccmp_data *_priv = priv; 95 struct ieee80211_ccmp_data *_priv = priv;
@@ -100,7 +99,6 @@ static void ieee80211_ccmp_deinit(void *priv)
100 kfree(priv); 99 kfree(priv);
101} 100}
102 101
103
104static inline void xor_block(u8 *b, u8 *a, size_t len) 102static inline void xor_block(u8 *b, u8 *a, size_t len)
105{ 103{
106 int i; 104 int i;
@@ -109,8 +107,6 @@ static inline void xor_block(u8 *b, u8 *a, size_t len)
109 b[i] ^= a[i]; 107 b[i] ^= a[i];
110} 108}
111 109
112
113
114static void ccmp_init_blocks(struct crypto_tfm *tfm, 110static void ccmp_init_blocks(struct crypto_tfm *tfm,
115 struct rtl_80211_hdr_4addr *hdr, 111 struct rtl_80211_hdr_4addr *hdr,
116 u8 *pn, size_t dlen, u8 *b0, u8 *auth, 112 u8 *pn, size_t dlen, u8 *b0, u8 *auth,
@@ -189,8 +185,6 @@ static void ccmp_init_blocks(struct crypto_tfm *tfm,
189 ieee80211_ccmp_aes_encrypt(tfm, b0, s0); 185 ieee80211_ccmp_aes_encrypt(tfm, b0, s0);
190} 186}
191 187
192
193
194static int ieee80211_ccmp_encrypt(struct sk_buff *skb, int hdr_len, void *priv) 188static int ieee80211_ccmp_encrypt(struct sk_buff *skb, int hdr_len, void *priv)
195{ 189{
196 struct ieee80211_ccmp_data *key = priv; 190 struct ieee80211_ccmp_data *key = priv;
@@ -227,7 +221,6 @@ static int ieee80211_ccmp_encrypt(struct sk_buff *skb, int hdr_len, void *priv)
227 *pos++ = key->tx_pn[1]; 221 *pos++ = key->tx_pn[1];
228 *pos++ = key->tx_pn[0]; 222 *pos++ = key->tx_pn[0];
229 223
230
231 hdr = (struct rtl_80211_hdr_4addr *) skb->data; 224 hdr = (struct rtl_80211_hdr_4addr *) skb->data;
232 if (!tcb_desc->bHwSec) { 225 if (!tcb_desc->bHwSec) {
233 int blocks, last, len; 226 int blocks, last, len;
@@ -264,7 +257,6 @@ static int ieee80211_ccmp_encrypt(struct sk_buff *skb, int hdr_len, void *priv)
264 return 0; 257 return 0;
265} 258}
266 259
267
268static int ieee80211_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv) 260static int ieee80211_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv)
269{ 261{
270 struct ieee80211_ccmp_data *key = priv; 262 struct ieee80211_ccmp_data *key = priv;
@@ -327,7 +319,6 @@ static int ieee80211_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv)
327 u8 *a = key->rx_a; 319 u8 *a = key->rx_a;
328 int i, blocks, last, len; 320 int i, blocks, last, len;
329 321
330
331 ccmp_init_blocks(key->tfm, hdr, pn, data_len, b0, a, b); 322 ccmp_init_blocks(key->tfm, hdr, pn, data_len, b0, a, b);
332 xor_block(mic, b, CCMP_MIC_LEN); 323 xor_block(mic, b, CCMP_MIC_LEN);
333 324
@@ -366,7 +357,6 @@ static int ieee80211_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv)
366 return keyidx; 357 return keyidx;
367} 358}
368 359
369
370static int ieee80211_ccmp_set_key(void *key, int len, u8 *seq, void *priv) 360static int ieee80211_ccmp_set_key(void *key, int len, u8 *seq, void *priv)
371{ 361{
372 struct ieee80211_ccmp_data *data = priv; 362 struct ieee80211_ccmp_data *data = priv;
@@ -397,7 +387,6 @@ static int ieee80211_ccmp_set_key(void *key, int len, u8 *seq, void *priv)
397 return 0; 387 return 0;
398} 388}
399 389
400
401static int ieee80211_ccmp_get_key(void *key, int len, u8 *seq, void *priv) 390static int ieee80211_ccmp_get_key(void *key, int len, u8 *seq, void *priv)
402{ 391{
403 struct ieee80211_ccmp_data *data = priv; 392 struct ieee80211_ccmp_data *data = priv;
@@ -421,7 +410,6 @@ static int ieee80211_ccmp_get_key(void *key, int len, u8 *seq, void *priv)
421 return CCMP_TK_LEN; 410 return CCMP_TK_LEN;
422} 411}
423 412
424
425static char *ieee80211_ccmp_print_stats(char *p, void *priv) 413static char *ieee80211_ccmp_print_stats(char *p, void *priv)
426{ 414{
427 struct ieee80211_ccmp_data *ccmp = priv; 415 struct ieee80211_ccmp_data *ccmp = priv;