Skip to contentSkip to conversation

uvesafb: Fix misplaced parentheses

PATCH In review Roel Kluin 2 participants 2 messages Feb 15, 2009 – Feb 16, 2009 Framebuffer layer

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 uvesafb: Fix misplaced parentheses

Fix misplaced parentheses

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

drivers/video/uvesafb.c +1 -1
index 6c2d37f..29dd4c3 100644
@@ -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

Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Roel Kluin

Fix misplaced parentheses

Quoted 20 lines

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

drivers/video/uvesafb.c +0 -0
index 6c2d37f..29dd4c3 100644

drivers/video/uvesafb.c static void __devinit uvesafb_init_info(struct fb_info *info, · line 1555

Quoted 8 lines
drivers/video/uvesafb.c +1 -1
@@ -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 [email protected]
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel