From: Pushpendra Singh <pushpendra.singh@smartplayin.com>
To: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org,
linux-kernel@vger.kernel.org
Cc: Pushpendra Singh <pushpendra.singh@smartplayin.com>
Subject: [PATCH 2/2] staging: rtl8192e: added parentheses in macros
Date: Mon, 16 Feb 2015 15:12:25 +0530 [thread overview]
Message-ID: <1424079745-27083-2-git-send-email-pushpendra.singh@smartplayin.com> (raw)
In-Reply-To: <1424079745-27083-1-git-send-email-pushpendra.singh@smartplayin.com>
Removed checkpatch.pl error
ERROR: Macros with complex values should be enclosed in parentheses
+#define MFIE_STRING(x) case MFIE_TYPE_ ##x: return #x
Signed-off-by: Pushpendra Singh <pushpendra.singh@smartplayin.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 280baf2..2917ce8 100644
--- a/drivers/staging/rtl8192e/rtllib_rx.c
+++ b/drivers/staging/rtl8192e/rtllib_rx.c
@@ -1685,7 +1685,7 @@ static int rtllib_parse_qos_info_param_IE(struct rtllib_info_element
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)
{
--
1.9.1
next prev parent reply other threads:[~2015-02-16 9:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-16 9:42 [PATCH 1/2] staging: rtl8192e: remove unnecessary spaces Pushpendra Singh
2015-02-16 9:42 ` Pushpendra Singh [this message]
2015-02-16 9:54 ` [PATCH 2/2] staging: rtl8192e: added parentheses in macros Dan Carpenter
2015-03-07 0:55 ` [PATCH 1/2] staging: rtl8192e: remove unnecessary spaces Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1424079745-27083-2-git-send-email-pushpendra.singh@smartplayin.com \
--to=pushpendra.singh@smartplayin.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).