Commit b860e73a authored by David Rientjes's avatar David Rientjes Committed by Linus Torvalds
Browse files

[PATCH] video SiS: remove unnecessary variables in SiS_DDC2Delay

Remove unnecesary iteration and accumulator variables from SiS_DDC2Delay.

Originally spotted by Jesper Juhl <>.

Cc: Jesper Juhl <>
Cc: Thomas Winischhofer <>
Signed-off-by: default avatarDavid Rientjes <>
Cc: "Antonino A. Daplas" <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent af342e93
......@@ -445,11 +445,8 @@ SiS_CR36BIOSWord23d(struct SiS_Private *SiS_Pr)
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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment