lkml.org 
[lkml]   [2003]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] sis comparison / assignment operator fix
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.
--- 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++) {
\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.060 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site