aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/sis/init301.c
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@cs.washington.edu>2006-12-08 05:40:19 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 11:29:05 -0500
commitb860e73a5488d9e75c2f2907174cb4277c2f9d21 (patch)
tree7385c1eafbb0f5d8c61b1deb9f399155101d21f7 /drivers/video/sis/init301.c
parentaf342e939d3244624d3e03ece2e6b8e9056dfb72 (diff)
[PATCH] video SiS: remove unnecessary variables in SiS_DDC2Delay
Remove unnecesary iteration and accumulator variables from SiS_DDC2Delay. Originally spotted by Jesper Juhl <jesper.juhl@gmail.com>. Cc: Jesper Juhl <jesper.juhl@gmail.com> Cc: Thomas Winischhofer <thomas@winischhofer.net> Signed-off-by: David Rientjes <rientjes@cs.washington.edu> Cc: "Antonino A. Daplas" <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video/sis/init301.c')
-rw-r--r--drivers/video/sis/init301.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/video/sis/init301.c b/drivers/video/sis/init301.c
index f13faddc6181..47e1896cffeb 100644
--- a/drivers/video/sis/init301.c
+++ b/drivers/video/sis/init301.c
@@ -445,11 +445,8 @@ SiS_CR36BIOSWord23d(struct SiS_Private *SiS_Pr)
445void 445void
446SiS_DDC2Delay(struct SiS_Private *SiS_Pr, unsigned int delaytime) 446SiS_DDC2Delay(struct SiS_Private *SiS_Pr, unsigned int delaytime)
447{ 447{
448 unsigned int i, j; 448 while (delaytime-- > 0)
449 449 SiS_GetReg(SiS_Pr->SiS_P3c4, 0x05);
450 for(i = 0; i < delaytime; i++) {
451 j += SiS_GetReg(SiS_Pr->SiS_P3c4,0x05);
452 }
453} 450}
454 451
455#if defined(SIS300) || defined(SIS315H) 452#if defined(SIS300) || defined(SIS315H)