[PATCH] uvesafb: Fix misplaced parentheses

Subsystems: framebuffer layer, the rest

STALE6384d

2 messages, 2 authors, 2009-02-16 · open the first message on its own page

[PATCH] uvesafb: Fix misplaced parentheses

From: Roel Kluin <hidden>
Date: 2009-02-15 16:49:23

Fix misplaced parentheses

Signed-off-by: Roel Kluin <redacted>
---
// vi include/linux/fb.h +755
#define FBINFO_MODULE           0x0001  /* Low-level driver is a module */

// ... :778
#define FBINFO_HWACCEL_YPAN             0x2000 /* optional */

// ... :855
#ifdef MODULE
#define FBINFO_DEFAULT  FBINFO_MODULE
#else
#define FBINFO_DEFAULT  0
#endif
diff --git a/drivers/video/uvesafb.c b/drivers/video/uvesafb.c
index 6c2d37f..29dd4c3 100644
--- a/drivers/video/uvesafb.c
+++ b/drivers/video/uvesafb.c
@@ -1549,7 +1549,7 @@ static void __devinit uvesafb_init_info(struct fb_info *info,
 	}
 
 	info->flags = FBINFO_FLAG_DEFAULT |
-			(par->ypan) ? FBINFO_HWACCEL_YPAN : 0;
+			(par->ypan ? FBINFO_HWACCEL_YPAN : 0);
 
 	if (!par->ypan)
 		info->fbops->fb_pan_display = NULL;

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H

Re: [PATCH] uvesafb: Fix misplaced parentheses

From: Michal Januszewski <hidden>
Date: 2009-02-16 12:54:49

On Sun, Feb 15, 2009 at 17:49, Roel Kluin [off-list ref] wrote:
Fix misplaced parentheses

Signed-off-by: Roel Kluin <redacted>
Acked-by: Michał Januszewski <redacted>
quoted hunk
---
// vi include/linux/fb.h +755
#define FBINFO_MODULE           0x0001  /* Low-level driver is a module */

// ... :778
#define FBINFO_HWACCEL_YPAN             0x2000 /* optional */

// ... :855
#ifdef MODULE
#define FBINFO_DEFAULT  FBINFO_MODULE
#else
#define FBINFO_DEFAULT  0
#endif
diff --git a/drivers/video/uvesafb.c b/drivers/video/uvesafb.c
index 6c2d37f..29dd4c3 100644
--- a/drivers/video/uvesafb.c
+++ b/drivers/video/uvesafb.c
@@ -1549,7 +1549,7 @@ static void __devinit uvesafb_init_info(struct fb_info *info,
       }

       info->flags = FBINFO_FLAG_DEFAULT |
-                       (par->ypan) ? FBINFO_HWACCEL_YPAN : 0;
+                       (par->ypan ? FBINFO_HWACCEL_YPAN : 0);

       if (!par->ypan)
               info->fbops->fb_pan_display = NULL;
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Linux-fbdev-devel mailing list
Linux-fbdev-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help