[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1489467134-6455-1-git-send-email-mohsinshan1k@gmail.com>
Date: Mon, 13 Mar 2017 21:52:14 -0700
From: mshan <educha997@...il.com>
To: gregkh@...uxfoundation.org, domdevlin@...e.fr, bhumirks@...il.com,
chopin.simon@...il.com, mohsinshan1k@...il.com,
peter@...leysoftware.com, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] Fixed a minor coding style warning. Arguments in the macros should be coverd in brackets to aviod any precedence issues.
Signed-off-by: mshan <mohsinshan1k@...il.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
Powered by blists - more mailing lists