linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] uvesafb: Fix misplaced parentheses
@ 2009-02-15 16:49 Roel Kluin
  2009-02-16 12:54 ` Michal Januszewski
  0 siblings, 1 reply; 2+ messages in thread
From: Roel Kluin @ 2009-02-15 16:49 UTC (permalink / raw)
  To: spock; +Cc: Andrew Morton, linux-fbdev-devel

Fix misplaced parentheses

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
// 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

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

end of thread, other threads:[~2009-02-16 12:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-15 16:49 [PATCH] uvesafb: Fix misplaced parentheses Roel Kluin
2009-02-16 12:54 ` Michal Januszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).