diff mbox series

video: fbdev: aty: mach64_gx: Added parentheses for the macro

Message ID 20210604034321.167789-1-lijian_8010a29@163.com (mailing list archive)
State Superseded, archived
Headers show
Series video: fbdev: aty: mach64_gx: Added parentheses for the macro | expand

Commit Message

lijian_8010a29@163.com June 4, 2021, 3:43 a.m. UTC
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 mbox series

Patch

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)
 
 
     /*