From: mshan <educha997@gmail.com>
To: gregkh@linuxfoundation.org, domdevlin@free.fr,
bhumirks@gmail.com, chopin.simon@gmail.com,
mohsinshan1k@gmail.com, peter@hurleysoftware.com,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: [PATCH] Fixed a minor coding style warning. Arguments in the macros should be coverd in brackets to aviod any precedence issues.
Date: Mon, 13 Mar 2017 23:02:45 -0700 [thread overview]
Message-ID: <1489471365-2266-2-git-send-email-mohsinshan1k@gmail.com> (raw)
In-Reply-To: <1489471365-2266-1-git-send-email-mohsinshan1k@gmail.com>
Signed-off-by: mshan <mohsinshan1k@gmail.com>
---
drivers/staging/fwserial/fwserial.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/fwserial/fwserial.c b/drivers/staging/fwserial/fwserial.c
index 41a49c8..d693c03 100644
--- a/drivers/staging/fwserial/fwserial.c
+++ b/drivers/staging/fwserial/fwserial.c
@@ -98,7 +98,7 @@ struct fwtty_transaction {
};
};
-#define to_device(a, b) (a->b)
+#define to_device(a, b) ((a)->(b))
#define fwtty_err(p, fmt, ...) \
dev_err(to_device(p, device), fmt, ##__VA_ARGS__)
#define fwtty_info(p, fmt, ...) \
--
2.7.4
next prev parent reply other threads:[~2017-03-14 6:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-14 6:02 Coding Style fix in drivers/staging/fwserial mshan
2017-03-14 6:02 ` mshan [this message]
2017-03-14 9:46 ` [PATCH] Fixed a minor coding style warning. Arguments in the macros should be coverd in brackets to aviod any precedence issues Dan Carpenter
2017-03-15 4:00 ` kbuild test robot
-- strict thread matches above, loose matches on Subject: below --
2017-03-14 4:52 mshan
2017-03-14 5:47 ` Greg KH
2017-03-14 9:40 ` Dan Carpenter
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=1489471365-2266-2-git-send-email-mohsinshan1k@gmail.com \
--to=educha997@gmail.com \
--cc=bhumirks@gmail.com \
--cc=chopin.simon@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=domdevlin@free.fr \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mohsinshan1k@gmail.com \
--cc=peter@hurleysoftware.com \
/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
all inboxes | Powered by JetHome®