Thread (2 messages) flat view 2 messages, 2 authors, 2009-02-16
STALE6386d

[PATCH] uvesafb: Fix misplaced parentheses

From: Roel Kluin <hidden>
Date: 2009-02-15 16:49:23
Subsystem: framebuffer layer, the rest · Maintainers: Helge Deller, Linus Torvalds

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help