staging: rtl8723bs: remove unneeded comments to silence 'line too long' warning
remove unneeded comments to fix the following post commit hook checkpatch warnings: WARNING: line length of 110 exceeds 100 columns 115: FILE: drivers/staging/rtl8723bs/core/rtw_security.c:510: + *((__le32 *)crc) = ~crc32_le(~0, payload, length);/* modified by Amy*/ WARNING: line length of 110 exceeds 100 columns 124: FILE: drivers/staging/rtl8723bs/core/rtw_security.c:518: + *((__le32 *)crc) = ~crc32_le(~0, payload, length);/* modified by Amy*/ Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com> Link: https://lore.kernel.org/r/bb479715e3603ab78863576783dbbf49c5f6f703.1620652505.git.fabioaiuto83@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b97fad10de
commit
1f5adcfe87
@ -507,7 +507,7 @@ u32 rtw_tkip_encrypt(struct adapter *padapter, u8 *pxmitframe)
|
||||
|
||||
if ((curfragnum+1) == pattrib->nr_frags) { /* 4 the last fragment */
|
||||
length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len;
|
||||
*((__le32 *)crc) = ~crc32_le(~0, payload, length);/* modified by Amy*/
|
||||
*((__le32 *)crc) = ~crc32_le(~0, payload, length);
|
||||
|
||||
arc4_setkey(&mycontext, rc4key, 16);
|
||||
arc4_crypt(&mycontext, payload, payload, length);
|
||||
@ -515,7 +515,8 @@ u32 rtw_tkip_encrypt(struct adapter *padapter, u8 *pxmitframe)
|
||||
|
||||
} else {
|
||||
length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len;
|
||||
*((__le32 *)crc) = ~crc32_le(~0, payload, length);/* modified by Amy*/
|
||||
*((__le32 *)crc) = ~crc32_le(~0, payload, length);
|
||||
|
||||
arc4_setkey(&mycontext, rc4key, 16);
|
||||
arc4_crypt(&mycontext, payload, payload, length);
|
||||
arc4_crypt(&mycontext, payload + length, crc, 4);
|
||||
|
Loading…
x
Reference in New Issue
Block a user