Skip to content

Commit

Permalink
staging: rtl8192e: Fixed the space and indentation coding styles
Browse files Browse the repository at this point in the history
rtllib_crypt_ccmp.c: Fixed the error - space required before the
open parenthesis '(' on line torvalds#281.

rtllib_crypt_ccmp.c: Fixed the warning - suspect code indent for
conditional statements on line torvalds#338

Signed-off-by: Darshan D V <darshandv10@gmail.com>
  • Loading branch information
darshandv authored and intel-lab-lkp committed Jul 17, 2020
1 parent 891a8d7 commit 5953a57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/rtl8192e/rtllib_crypt_ccmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ static int rtllib_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv)
int aad_len, ret;

req = aead_request_alloc(key->tfm, GFP_ATOMIC);
if(!req)
if (!req)
return -ENOMEM;

aad_len = ccmp_init_iv_and_aad(hdr, pn, iv, aad);
Expand Down Expand Up @@ -337,7 +337,7 @@ static int rtllib_ccmp_set_key(void *key, int len, u8 *seq, void *priv)
}
if (crypto_aead_setauthsize(data->tfm, CCMP_MIC_LEN) ||
crypto_aead_setkey(data->tfm, data->key, CCMP_TK_LEN))
return -1;
return -1;
} else if (len == 0) {
data->key_set = 0;
} else {
Expand Down

0 comments on commit 5953a57

Please sign in to comment.