mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [2.5 patch] remove useless statement from video/i810/i810_main.c
@ 2003-06-21 14:56 Adrian Bunk
  0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2003-06-21 14:56 UTC (permalink / raw)
  To: Antonino Daplas, James Simmons; +Cc: linux-kernel, trivial

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-06-21 14:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-21 14:56 [2.5 patch] remove useless statement from video/i810/i810_main.c Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®