* [patch] sis comparison / assignment operator fix
@ 2003-11-24 6:41 Geoffrey Lee
0 siblings, 0 replies; 2+ messages in thread
From: Geoffrey Lee @ 2003-11-24 6:41 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 191 bytes --]
Hi,
This fixes what seems to be an obvious = vs == bug in the init301.c
sis file.
It has
if (temp = 0xffff) return;
which should always be true, so it always returns.
- g.
--
geoff.
[-- Attachment #2: sis-init301.c.patch --]
[-- Type: text/plain, Size: 480 bytes --]
--- linux-2.6.0-test10/drivers/video/sis/init301.c.orig 2003-11-24 14:36:57.000000000 +0800
+++ linux-2.6.0-test10/drivers/video/sis/init301.c 2003-11-24 14:37:59.000000000 +0800
@@ -11712,7 +11712,7 @@ SetOEMLCDData(SiS_Private *SiS_Pr, PSIS_
}
temp = GetOEMLCDPtr(SiS_Pr,HwDeviceExtension, ROMAddr, 1);
- if(temp = 0xFFFF) return;
+ if(temp == 0xFFFF) return;
index = SiS_Pr->SiS_VBModeIDTable[ModeIdIndex]._VB_LCDHIndex;
for(i=0x14, j=0; i<=0x17; i++, j++) {
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch] sis comparison / assignment operator fix
@ 2003-11-24 9:06 Thomas Winischhofer
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Winischhofer @ 2003-11-24 9:06 UTC (permalink / raw)
To: lkml
Geoffrey Lee wrote:
> This fixes what seems to be an obvious = vs == bug in the init301.c
> sis file.
>
> It has
>
> if (temp = 0xffff) return;
>
> which should always be true, so it always returns.
You did notice the "#if 0" - "#endif" around that code, didn't you?
BTW: Patching a more than 10 months old version of that driver is
pointless anyway. The current fb-related development is exclusively done
in James Simmon's fbdev tree, and current versions of the sisfb driver
are obtainable at http://www.winischhofer.net/linuxsisvga.shtml
Thomas
--
Thomas Winischhofer
Vienna/Austria
thomas AT winischhofer DOT net *** http://www.winischhofer.net/
twini AT xfree86 DOT org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-11-24 9:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-24 9:06 [patch] sis comparison / assignment operator fix Thomas Winischhofer
-- strict thread matches above, loose matches on Subject: below --
2003-11-24 6:41 Geoffrey Lee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox