[2.5 patch] remove useless statement from video/i810/i810_main.c

From: Adrian Bunk (bunk@fs.tum.de)
Date: Sat Jun 21 2003 - 09:56:03 EST


An u8 is _never_ > 255.

--- linux-2.5.72-mm2/drivers/video/i810/i810_main.c.old 2003-06-21 16:52:32.000000000 +0200
+++ linux-2.5.72-mm2/drivers/video/i810/i810_main.c 2003-06-21 16:52:44.000000000 +0200
@@ -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

-- 

"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

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jun 23 2003 - 22:00:36 EST