All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: greybus: Add brackets to avoid precedence issues
@ 2019-03-04 17:39 Nishka Dasgupta
  2019-03-04 19:02 ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: Nishka Dasgupta @ 2019-03-04 17:39 UTC (permalink / raw)
  To: johan, elder, gregkh, outreachy-kernel; +Cc: Nishka Dasgupta

Add parentheses around arguments to avoid precedence issues. Issue found
by Checkpatch.

Signed-off-by: Nishka Dasgupta <nishka.dasgupta@yahoo.com>
---
 drivers/staging/greybus/camera.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/greybus/camera.c b/drivers/staging/greybus/camera.c
index 615c8e7fd51e..7b653a4fd63f 100644
--- a/drivers/staging/greybus/camera.c
+++ b/drivers/staging/greybus/camera.c
@@ -180,9 +180,9 @@ static const struct gb_camera_fmt_info *gb_camera_get_format_info(u16 gb_fmt)
 
 #define GB_CAMERA_MAX_SETTINGS_SIZE	8192
 
-#define gcam_dbg(gcam, format...)	dev_dbg(&gcam->bundle->dev, format)
-#define gcam_info(gcam, format...)	dev_info(&gcam->bundle->dev, format)
-#define gcam_err(gcam, format...)	dev_err(&gcam->bundle->dev, format)
+#define gcam_dbg((gcam), format...)	dev_dbg(&gcam->bundle->dev, format)
+#define gcam_info((gcam), format...)	dev_info(&gcam->bundle->dev, format)
+#define gcam_err((gcam), format...)	dev_err(&gcam->bundle->dev, format)
 
 static int gb_camera_operation_sync_flags(struct gb_connection *connection,
 					  int type, unsigned int flags,
-- 
2.19.1



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

end of thread, other threads:[~2019-03-05 17:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-04 17:39 [PATCH] staging: greybus: Add brackets to avoid precedence issues Nishka Dasgupta
2019-03-04 19:02 ` Greg KH
2019-03-04 20:12   ` [Outreachy kernel] " Nishka Dasgupta
2019-03-04 21:12     ` Julia Lawall
2019-03-05 17:09       ` Nishka Dasgupta

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.