staging: rtl8723au: Fix "before/around/after" whitespace issues

Correct a number of "space(s) required before/around/after" checkpatch.pl
issues in a number of functions in rtl8723au's rtw_security.c.

Signed-off-by: M. Vefa Bicakci <m.v.b@runbox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
M. Vefa Bicakci 2015-03-28 21:07:45 -04:00 committed by Greg Kroah-Hartman
parent f5d8bde742
commit 9c0cfd4b6f

View file

@ -663,7 +663,11 @@ int rtw_tkip_encrypt23a(struct rtw_adapter *padapter,
phase2(&rc4key[0], prwskey, (u16 *)&ttkey[0], pnl); phase2(&rc4key[0], prwskey, (u16 *)&ttkey[0], pnl);
if ((curfragnum + 1) == pattrib->nr_frags) { /* 4 the last fragment */ if ((curfragnum + 1) == pattrib->nr_frags) { /* 4 the last fragment */
length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len- pattrib->icv_len; length = (pattrib->last_txcmdsz -
pattrib->hdrlen -
pattrib->iv_len -
pattrib->icv_len);
RT_TRACE(_module_rtl871x_security_c_, _drv_info_, RT_TRACE(_module_rtl871x_security_c_, _drv_info_,
"pattrib->iv_len =%x, pattrib->icv_len =%x\n", "pattrib->iv_len =%x, pattrib->icv_len =%x\n",
pattrib->iv_len, pattrib->iv_len,
@ -676,7 +680,11 @@ int rtw_tkip_encrypt23a(struct rtw_adapter *padapter,
} }
else { else {
length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len ; length = (pxmitpriv->frag_len -
pattrib->hdrlen -
pattrib->iv_len -
pattrib->icv_len);
*((u32 *)crc) = cpu_to_le32(getcrc32(payload, length));/* modified by Amy*/ *((u32 *)crc) = cpu_to_le32(getcrc32(payload, length));/* modified by Amy*/
arcfour_init(&mycontext, rc4key, 16); arcfour_init(&mycontext, rc4key, 16);
arcfour_encrypt(&mycontext, payload, payload, length); arcfour_encrypt(&mycontext, payload, payload, length);
@ -1075,7 +1083,6 @@ static void construct_mic_header2(u8 *mic_header2, u8 *mpdu, int a4_exists,
if (!qc_exists && a4_exists) { if (!qc_exists && a4_exists) {
for (i = 0; i < 6; i++) mic_header2[8+i] = mpdu[24+i]; /* A4 */ for (i = 0; i < 6; i++) mic_header2[8+i] = mpdu[24+i]; /* A4 */
} }
if (qc_exists && !a4_exists) { if (qc_exists && !a4_exists) {