Skip to content

Commit

Permalink
[PATCH] video SiS: remove unnecessary variables in SiS_DDC2Delay
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Rientjes authored and Linus Torvalds committed Dec 8, 2006
1 parent af342e9 commit b860e73
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions drivers/video/sis/init301.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,11 +445,8 @@ SiS_CR36BIOSWord23d(struct SiS_Private *SiS_Pr)
void
SiS_DDC2Delay(struct SiS_Private *SiS_Pr, unsigned int delaytime)
{
unsigned int i, j;

for(i = 0; i < delaytime; i++) {
j += SiS_GetReg(SiS_Pr->SiS_P3c4,0x05);
}
while (delaytime-- > 0)
SiS_GetReg(SiS_Pr->SiS_P3c4, 0x05);
}

#if defined(SIS300) || defined(SIS315H)
Expand Down

0 comments on commit b860e73

Please sign in to comment.