public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Coding Style fix in drivers/staging/fwserial
@ 2017-03-14  6:02 mshan
  2017-03-14  6:02 ` [PATCH] Fixed a minor coding style warning. Arguments in the macros should be coverd in brackets to aviod any precedence issues mshan
  0 siblings, 1 reply; 7+ messages in thread
From: mshan @ 2017-03-14  6:02 UTC (permalink / raw)
  To: gregkh, domdevlin, bhumirks, chopin.simon, mohsinshan1k, peter,
	devel, linux-kernel

Arguments in the macros should be coverd in brackets to aviod any 
precedence issues. Fixed it.

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCH] Fixed a minor coding style warning. Arguments in the macros should be coverd in brackets to aviod any precedence issues.
@ 2017-03-14  4:52 mshan
  2017-03-14  5:47 ` Greg KH
  2017-03-14  9:40 ` Dan Carpenter
  0 siblings, 2 replies; 7+ messages in thread
From: mshan @ 2017-03-14  4:52 UTC (permalink / raw)
  To: gregkh, domdevlin, bhumirks, chopin.simon, mohsinshan1k, peter,
	devel, linux-kernel

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

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

end of thread, other threads:[~2017-03-15  4:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-14  6:02 Coding Style fix in drivers/staging/fwserial mshan
2017-03-14  6:02 ` [PATCH] Fixed a minor coding style warning. Arguments in the macros should be coverd in brackets to aviod any precedence issues mshan
2017-03-14  9:46   ` 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

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