All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers: staging: rtl8188eu: include: wifi: Unnecessary do-while removed from macro
@ 2017-01-14 18:23 Kartikey Singh
  2017-01-14 18:38 ` Greg KH
  0 siblings, 1 reply; 7+ messages in thread
From: Kartikey Singh @ 2017-01-14 18:23 UTC (permalink / raw)
  To: gregkh, insafonov, devel, linux-kernel

do while loop removed from single statement macro

Signed-off-by: Kartikey Singh <dr.kartikeynrc@gmail.com>
---
 drivers/staging/rtl8188eu/include/wifi.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/staging/rtl8188eu/include/wifi.h b/drivers/staging/rtl8188eu/include/wifi.h
index 9e08e68..57db709 100644
--- a/drivers/staging/rtl8188eu/include/wifi.h
+++ b/drivers/staging/rtl8188eu/include/wifi.h
@@ -481,9 +481,7 @@ static inline int IsFrameTypeCtrl(unsigned char *pframe)
 ------------------------------------------------------------------------------*/
 
 #define SetOrderBit(pbuf)	\
-	do	{	\
-		*(unsigned short *)(pbuf) |= cpu_to_le16(_ORDER_); \
-	} while (0)
+	(*(unsigned short *)(pbuf) |= cpu_to_le16(_ORDER_))
 
 #define GetOrderBit(pbuf)			\
 	(((*(unsigned short *)(pbuf)) & le16_to_cpu(_ORDER_)) != 0)
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-01-15 10:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-14 18:23 [PATCH] drivers: staging: rtl8188eu: include: wifi: Unnecessary do-while removed from macro Kartikey Singh
2017-01-14 18:38 ` Greg KH
2017-01-14 19:38   ` Kartikey Singh
2017-01-15 10:56     ` Greg KH
     [not found]   ` <CAOKLEkBoQrV_TE+61vD=43B8py21Moq-Tyczz+d=u8dTpbACkg@mail.gmail.com>
2017-01-14 19:40     ` Greg KH
2017-01-14 19:53       ` Ivan Safonov
2017-01-15 10:56         ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.