projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dbacd4
)
ARM: s3c: delete unneed local variable "delay"
author
Jason Wang
<wangborong@cdjrlc.com>
Wed, 18 Aug 2021 20:44:22 +0000
(22:44 +0200)
committer
Arnd Bergmann
<arnd@arndb.de>
Thu, 19 Aug 2021 21:40:09 +0000
(23:40 +0200)
"delay" variable on line 79 can be deleted by returning "0" on line 88.
Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link:
https://lore.kernel.org/r/20210624055627.22295-1-wangborong@cdjrlc.com
Link:
https://lore.kernel.org/r/20210818204422.17919-1-krzysztof.kozlowski@canonical.com'
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-s3c/mach-gta02.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-s3c/mach-gta02.c
b/arch/arm/mach-s3c/mach-gta02.c
index
aec8b45
..
418939c
100644
(file)
--- a/
arch/arm/mach-s3c/mach-gta02.c
+++ b/
arch/arm/mach-s3c/mach-gta02.c
@@
-79,13
+79,12
@@
static struct pcf50633 *gta02_pcf;
static long gta02_panic_blink(int state)
{
- long delay = 0;
char led;
led = (state) ? 1 : 0;
gpio_direction_output(GTA02_GPIO_AUX_LED, led);
- return
delay
;
+ return
0
;
}