Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1736368 > unrolled thread

[PATCH] staging:rtl8188eu Fix remove semicolon in do {}while(0)

Started byJanani Sankara Babu <jananis37@gmail.com>
First post2017-09-21 07:50 +0200
Last post2017-09-21 07:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] staging:rtl8188eu Fix remove semicolon in do {}while(0) Janani Sankara Babu <jananis37@gmail.com> - 2017-09-21 07:50 +0200

#1736368 — [PATCH] staging:rtl8188eu Fix remove semicolon in do {}while(0)

FromJanani Sankara Babu <jananis37@gmail.com>
Date2017-09-21 07:50 +0200
Subject[PATCH] staging:rtl8188eu Fix remove semicolon in do {}while(0)
Message-ID<us2x5-55T-7@gated-at.bofh.it>
This patch removes the semicolon at the end of while statement in the
do while macro , inorder to avoid it behaving like compound statement.

Signed-off-by: Janani Sankara Babu <jananis37@gmail.com>
---
 drivers/staging/rtl8188eu/core/rtw_security.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8188eu/core/rtw_security.c b/drivers/staging/rtl8188eu/core/rtw_security.c
index b283a490..5b1ef22 100644
--- a/drivers/staging/rtl8188eu/core/rtw_security.c
+++ b/drivers/staging/rtl8188eu/core/rtw_security.c
@@ -1690,4 +1690,4 @@ u32	rtw_aes_decrypt(struct adapter *padapter, u8 *precvframe)
 	d##1 = TE0(s##1) ^ TE1(s##2) ^ TE2(s##3) ^ TE3(s##0) ^ rk[4 * i + 1]; \
 	d##2 = TE0(s##2) ^ TE1(s##3) ^ TE2(s##0) ^ TE3(s##1) ^ rk[4 * i + 2]; \
 	d##3 = TE0(s##3) ^ TE1(s##0) ^ TE2(s##1) ^ TE3(s##2) ^ rk[4 * i + 3]; \
-} while (0);
+} while (0)
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web