+ video-sis-remove-unnecessary-variables-in-sis_ddc2delay.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     video SiS: remove unnecessary variables in SiS_DDC2Delay
has been added to the -mm tree.  Its filename is
     video-sis-remove-unnecessary-variables-in-sis_ddc2delay.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: video SiS: remove unnecessary variables in SiS_DDC2Delay
From: David Rientjes <rientjes@xxxxxxxxxxxxxxxxx>

Remove unnecesary iteration and accumulator variables from SiS_DDC2Delay.

Originally spotted by Jesper Juhl <jesper.juhl@xxxxxxxxx>.

Cc: Jesper Juhl <jesper.juhl@xxxxxxxxx>
Cc: Thomas Winischhofer <thomas@xxxxxxxxxxxxxxxx>
Signed-off-by: David Rientjes <rientjes@xxxxxxxxxxxxxxxxx>
Cc: "Antonino A. Daplas" <adaplas@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/video/sis/init301.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff -puN drivers/video/sis/init301.c~video-sis-remove-unnecessary-variables-in-sis_ddc2delay drivers/video/sis/init301.c
--- a/drivers/video/sis/init301.c~video-sis-remove-unnecessary-variables-in-sis_ddc2delay
+++ a/drivers/video/sis/init301.c
@@ -445,11 +445,8 @@ SiS_CR36BIOSWord23d(struct SiS_Private *
 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)
_

Patches currently in -mm which might be from rientjes@xxxxxxxxxxxxxxxxx are

i386-mm-substitute-__va-lookup-with-pfn_to_kaddr.patch
memory-page_alloc-zonelist-caching-speedup.patch
video-sis-remove-unnecessary-variables-in-sis_ddc2delay.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux