summaryrefslogtreecommitdiff
path: root/drivers/video/sis/init.c
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2012-07-11 17:22:56 +0400
committerJiri Kosina <jkosina@suse.cz>2012-07-11 19:37:24 +0400
commit39012f68058e845b63b98fc07f37cf631dddbed3 (patch)
treee2d41352e21c4cfd8ac60168a691c41c11b1a3e1 /drivers/video/sis/init.c
parent0f307323a48e47f064aa38e87f6fa03c88b551fc (diff)
downloadlinux-39012f68058e845b63b98fc07f37cf631dddbed3.tar.xz
via: Remove bogus if check
Reported-by: <dcb314@hotmail.com> Signed-off-by: Alan Cox <alan@linux.intel.com> Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=44331 Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/video/sis/init.c')
-rw-r--r--drivers/video/sis/init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/sis/init.c b/drivers/video/sis/init.c
index 66de832361cc..f082ae55c0c9 100644
--- a/drivers/video/sis/init.c
+++ b/drivers/video/sis/init.c
@@ -2628,7 +2628,8 @@ SiS_SetVCLKState(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
else if(VCLK >= 135) data = 0x02;
if(SiS_Pr->ChipType == SIS_540) {
- if((VCLK == 203) || (VCLK < 234)) data = 0x02;
+ /* Was == 203 or < 234 which made no sense */
+ if (VCLK < 234) data = 0x02;
}
if(SiS_Pr->ChipType < SIS_315H) {