From: Adrian Bunk <bunk@fs.tum.de>
To: Antonino Daplas <adaplas@pol.net>,
James Simmons <jsimmons@infradead.org>
Cc: linux-kernel@vger.kernel.org, trivial@rustcorp.com.au
Subject: [2.5 patch] remove useless statement from video/i810/i810_main.c
Date: Sat, 21 Jun 2003 16:56:03 +0200 [thread overview]
Message-ID: <20030621145603.GA23337@fs.tum.de> (raw)
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
reply other threads:[~2003-06-21 14:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030621145603.GA23337@fs.tum.de \
--to=bunk@fs.tum.de \
--cc=adaplas@pol.net \
--cc=jsimmons@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=trivial@rustcorp.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®