aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorM. Vefa Bicakci <m.v.b@runbox.com>2015-03-28 21:07:46 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-04-03 09:25:45 -0400
commit2d7b3a7bb81fb585a4f794667297406438605090 (patch)
tree8b09e2202af3404b457013fada0401b15a34209e
parent9c0cfd4b6f51af9a935dbec680a60a4521b5f2b8 (diff)
staging: rtl8723au: else should follow close brace
Correct checkpatch.pl errors in rtl8723au's rtw_security.c indicating that an else statement should follow the closing brace of the previous if/else if code block: ERROR: else should follow close brace '}' Signed-off-by: M. Vefa Bicakci <m.v.b@runbox.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/rtl8723au/core/rtw_security.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/staging/rtl8723au/core/rtw_security.c b/drivers/staging/rtl8723au/core/rtw_security.c
index 572fcf3f936d..9faf78bf23d8 100644
--- a/drivers/staging/rtl8723au/core/rtw_security.c
+++ b/drivers/staging/rtl8723au/core/rtw_security.c
@@ -376,8 +376,7 @@ void rtw_seccalctkipmic23a(u8 *key, u8 *header, u8 *data, u32 data_len,
376 rtw_secmicappend23a(&micdata, &header[24], 6); 376 rtw_secmicappend23a(&micdata, &header[24], 6);
377 else 377 else
378 rtw_secmicappend23a(&micdata, &header[10], 6); 378 rtw_secmicappend23a(&micdata, &header[10], 6);
379 } 379 } else { /* ToDS == 0 */
380 else{ /* ToDS == 0 */
381 rtw_secmicappend23a(&micdata, &header[4], 6); /* DA */ 380 rtw_secmicappend23a(&micdata, &header[4], 6); /* DA */
382 if (header[1]&2) /* From Ds == 1 */ 381 if (header[1]&2) /* From Ds == 1 */
383 rtw_secmicappend23a(&micdata, &header[16], 6); 382 rtw_secmicappend23a(&micdata, &header[16], 6);
@@ -678,8 +677,7 @@ int rtw_tkip_encrypt23a(struct rtw_adapter *padapter,
678 arcfour_encrypt(&mycontext, payload, payload, length); 677 arcfour_encrypt(&mycontext, payload, payload, length);
679 arcfour_encrypt(&mycontext, payload + length, crc, 4); 678 arcfour_encrypt(&mycontext, payload + length, crc, 4);
680 679
681 } 680 } else {
682 else {
683 length = (pxmitpriv->frag_len - 681 length = (pxmitpriv->frag_len -
684 pattrib->hdrlen - 682 pattrib->hdrlen -
685 pattrib->iv_len - 683 pattrib->iv_len -
@@ -695,8 +693,7 @@ int rtw_tkip_encrypt23a(struct rtw_adapter *padapter,
695 } 693 }
696 } 694 }
697 695
698 } 696 } else {
699 else {
700 RT_TRACE(_module_rtl871x_security_c_, _drv_err_, 697 RT_TRACE(_module_rtl871x_security_c_, _drv_err_,
701 "rtw_tkip_encrypt23a: stainfo == NULL!!!\n"); 698 "rtw_tkip_encrypt23a: stainfo == NULL!!!\n");
702 DBG_8723A("%s, psta == NUL\n", __func__); 699 DBG_8723A("%s, psta == NUL\n", __func__);