projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8214513
)
ARM: S3C24xx: delete double assignment
author
Julia Lawall
<Julia.Lawall@lip6.fr>
Thu, 13 Sep 2012 07:01:09 +0000
(16:01 +0900)
committer
Kukjin Kim
<kgene.kim@samsung.com>
Fri, 21 Sep 2012 03:52:54 +0000
(12:52 +0900)
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/)
// <smpl>
@@
expression i;
@@
*i = ...;
i = ...;
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-s3c24xx/mach-h1940.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-s3c24xx/mach-h1940.c
b/arch/arm/mach-s3c24xx/mach-h1940.c
index
bb8d008
..
477778c
100644
(file)
--- 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_gpio
1
= S3C2410_GPA(7);
+ check_gpio
2
= S3C2410_GPA(7);
break;
}