From: Julia Lawall Date: Thu, 13 Sep 2012 07:01:09 +0000 (+0900) Subject: ARM: S3C24xx: delete double assignment X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=884dc5a2d39cae6dec323163654a99bda8363399;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ARM: S3C24xx: delete double assignment Delete successive assignments to the same location. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression i; @@ *i = ...; i = ...; // Signed-off-by: Julia Lawall Signed-off-by: Kukjin Kim --- diff --git a/arch/arm/mach-s3c24xx/mach-h1940.c b/arch/arm/mach-s3c24xx/mach-h1940.c index bb8d008d5a5c..477778c3de71 100644 --- a/arch/arm/mach-s3c24xx/mach-h1940.c +++ b/arch/arm/mach-s3c24xx/mach-h1940.c @@ -380,7 +380,7 @@ int h1940_led_blink_set(unsigned gpio, int state, default: blink_gpio = S3C2410_GPA(3); check_gpio1 = S3C2410_GPA(1); - check_gpio1 = S3C2410_GPA(7); + check_gpio2 = S3C2410_GPA(7); break; }