[PATCH 07/56] staging: r8188eu: add parenthesis to macro SetMFrag

Alberto Merciai posted 56 patches 4 years, 1 month ago
[PATCH 07/56] staging: r8188eu: add parenthesis to macro SetMFrag
Posted by Alberto Merciai 4 years, 1 month ago
Enclose in parenthesis complex macro SetMFrag

Signed-off-by: Alberto Merciai <alb3rt0.m3rciai@gmail.com>
---
 drivers/staging/r8188eu/include/wifi.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/r8188eu/include/wifi.h b/drivers/staging/r8188eu/include/wifi.h
index 1d24d798c5f9..6e39a72e49db 100644
--- a/drivers/staging/r8188eu/include/wifi.h
+++ b/drivers/staging/r8188eu/include/wifi.h
@@ -176,7 +176,7 @@ enum WIFI_REG_DOMAIN {
 #define get_tofr_ds(pframe)	((GetToDs(pframe) << 1) | GetFrDs(pframe))
 
 #define SetMFrag(pbuf)	\
-	*(__le16 *)(pbuf) |= cpu_to_le16(_MORE_FRAG_)
+	(*(__le16 *)(pbuf) |= cpu_to_le16(_MORE_FRAG_))
 
 #define GetMFrag(pbuf)	(((*(__le16 *)(pbuf)) & cpu_to_le16(_MORE_FRAG_)) != 0)
 
-- 
2.25.1