The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] staging: rtl8192e: rtllib: fix macro style issue
@ 2015-07-23 10:59 Ioan-Adrian Ratiu
  2015-07-23 12:15 ` Dan Carpenter
  2015-07-23 13:24 ` [PATCH v2] " Ioan-Adrian Ratiu
  0 siblings, 2 replies; 3+ messages in thread
From: Ioan-Adrian Ratiu @ 2015-07-23 10:59 UTC (permalink / raw)
  To: gregkh; +Cc: mateusz.kulikowski, devel, linux-kernel

Enclose defined macro in paranthesis to avoid checkpatch complaint
"ERROR: Macros with complex values should be enclosed in parentheses"

Signed-off-by: Ioan-Adrian Ratiu <adi@adirat.com>
---
 drivers/staging/rtl8192e/rtllib_rx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c
index 54dfff6..5f1650c 100644
--- a/drivers/staging/rtl8192e/rtllib_rx.c
+++ b/drivers/staging/rtl8192e/rtllib_rx.c
@@ -1744,7 +1744,7 @@ static int rtllib_parse_qos_info_param_IE(struct rtllib_device *ieee,
 	return rc;
 }
 
-#define MFIE_STRING(x) case MFIE_TYPE_ ##x: return #x
+#define MFIE_STRING(x) (case MFIE_TYPE_ ##x: return #x)
 
 static const char *get_info_element_string(u16 id)
 {
-- 
2.1.4


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

end of thread, other threads:[~2015-07-23 13:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-23 10:59 [PATCH] staging: rtl8192e: rtllib: fix macro style issue Ioan-Adrian Ratiu
2015-07-23 12:15 ` Dan Carpenter
2015-07-23 13:24 ` [PATCH v2] " Ioan-Adrian Ratiu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox