All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] video: fbdev: aty: mach64_gx: Added parentheses for the macro
@ 2021-06-04  3:43 lijian_8010a29
  0 siblings, 0 replies; only message in thread
From: lijian_8010a29 @ 2021-06-04  3:43 UTC (permalink / raw)
  To: linux-fbdev, dri-devel; +Cc: linux-kernel, lijian

From: lijian <lijian@yulong.com>

Macros with complex values should be enclosed in parentheses,
so Added parentheses for the macro 'MAX_N'.

Signed-off-by: lijian <lijian@yulong.com>
---
 drivers/video/fbdev/aty/mach64_gx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/fbdev/aty/mach64_gx.c b/drivers/video/fbdev/aty/mach64_gx.c
index 9619661b7843..4d89c05e5a65 100644
--- a/drivers/video/fbdev/aty/mach64_gx.c
+++ b/drivers/video/fbdev/aty/mach64_gx.c
@@ -33,7 +33,7 @@
 #define MIN_M		2
 #define MAX_M		30
 #define MIN_N		35
-#define MAX_N		255-8
+#define MAX_N		(255-8)
 
 
     /*
-- 
2.25.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-04  3:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-04  3:43 [PATCH] video: fbdev: aty: mach64_gx: Added parentheses for the macro lijian_8010a29

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.