public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging: panel: Fixed a macro coding style issue
@ 2012-09-19 19:37 Adil Mujeeb
  2012-09-19 19:44 ` Joe Perches
  0 siblings, 1 reply; 8+ messages in thread
From: Adil Mujeeb @ 2012-09-19 19:37 UTC (permalink / raw)
  To: willy; +Cc: gregkh, evel, linux-kernel, mujeeb.adil

Removed do {} while (0) loop for a single statement macros

Signed-off-by: Adil Mujeeb <mujeeb.adil@gmail.com>
---
 linux-3.6-rc6/drivers/staging/panel/panel.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/linux-3.6-rc6/drivers/staging/panel/panel.c b/linux-3.6-rc6/drivers/staging/panel/panel.c
index 39f9982..d9fec5b 100644
--- a/linux-3.6-rc6/drivers/staging/panel/panel.c
+++ b/linux-3.6-rc6/drivers/staging/panel/panel.c
@@ -137,8 +137,8 @@
 #define r_ctr(x)        (parport_read_control((x)->port))
 #define r_dtr(x)        (parport_read_data((x)->port))
 #define r_str(x)        (parport_read_status((x)->port))
-#define w_ctr(x, y)     do { parport_write_control((x)->port, (y)); } while (0)
-#define w_dtr(x, y)     do { parport_write_data((x)->port, (y)); } while (0)
+#define w_ctr(x, y)     (parport_write_control((x)->port, (y)))
+#define w_dtr(x, y)     (parport_write_data((x)->port, (y)))
 
 /* this defines which bits are to be used and which ones to be ignored */
 /* logical or of the output bits involved in the scan matrix */
-- 
1.7.7.3


^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [PATCH] Staging: panel: Fixed a macro coding style issue
@ 2012-09-19 19:40 Adil Mujeeb
  2012-09-20  9:02 ` Dan Carpenter
  0 siblings, 1 reply; 8+ messages in thread
From: Adil Mujeeb @ 2012-09-19 19:40 UTC (permalink / raw)
  To: willy; +Cc: gregkh, devel, linux-kernel, mujeeb.adil

Removed do {} while (0) loop for a single statement macros

Signed-off-by: Adil Mujeeb <mujeeb.adil@gmail.com>
---
 linux-3.6-rc6/drivers/staging/panel/panel.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/linux-3.6-rc6/drivers/staging/panel/panel.c b/linux-3.6-rc6/drivers/staging/panel/panel.c
index 39f9982..d9fec5b 100644
--- a/linux-3.6-rc6/drivers/staging/panel/panel.c
+++ b/linux-3.6-rc6/drivers/staging/panel/panel.c
@@ -137,8 +137,8 @@
 #define r_ctr(x)        (parport_read_control((x)->port))
 #define r_dtr(x)        (parport_read_data((x)->port))
 #define r_str(x)        (parport_read_status((x)->port))
-#define w_ctr(x, y)     do { parport_write_control((x)->port, (y)); } while (0)
-#define w_dtr(x, y)     do { parport_write_data((x)->port, (y)); } while (0)
+#define w_ctr(x, y)     (parport_write_control((x)->port, (y)))
+#define w_dtr(x, y)     (parport_write_data((x)->port, (y)))
 
 /* this defines which bits are to be used and which ones to be ignored */
 /* logical or of the output bits involved in the scan matrix */
-- 
1.7.7.3


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

end of thread, other threads:[~2012-09-20  9:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-19 19:37 [PATCH] Staging: panel: Fixed a macro coding style issue Adil Mujeeb
2012-09-19 19:44 ` Joe Perches
2012-09-19 20:39   ` Willy Tarreau
2012-09-20  3:49     ` Adil Mujeeb
2012-09-20  5:22       ` Willy Tarreau
2012-09-20  5:39         ` Adil Mujeeb
  -- strict thread matches above, loose matches on Subject: below --
2012-09-19 19:40 Adil Mujeeb
2012-09-20  9:02 ` Dan Carpenter

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