Skip to contentSkip to conversation

remove useless statement from video/i810/i810_main.c

PATCH New Adrian Bunk 1 participant 1 message Jun 21, 2003 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove useless statement from video/i810/i810_main.c

An u8 is _never_ > 255.

drivers/video/i810/i810_main.c renamed from drivers/video/i810/i810_main.c.old +0 -2
@@ -1075,8 +1075,6 @@
 	struct i810fb_par *par = (struct i810fb_par *) info->par;
 	u8 *mmio = par->mmio_start_virtual, temp;
 
-	if (regno > 255) return 1;
-
 	if (info->fix.visual == FB_VISUAL_DIRECTCOLOR) {
 		if ((info->var.green.length == 5 && regno > 31) ||
 		    (info->var.green.length == 6 && regno > 63))

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed