lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170114182336.ekexr4mluquurd63@kartikey-HP-Notebook>
Date:   Sat, 14 Jan 2017 23:53:36 +0530
From:   Kartikey Singh <dr.kartikeynrc@...il.com>
To:     gregkh@...uxfoundation.org, insafonov@...il.com,
        devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: [PATCH] drivers: staging: rtl8188eu: include: wifi: Unnecessary
 do-while removed from macro

do while loop removed from single statement macro

Signed-off-by: Kartikey Singh <dr.kartikeynrc@...il.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ