diff options
author | Jason Wang <[email protected]> | 2021-08-18 22:44:22 +0200 |
---|---|---|
committer | Arnd Bergmann <[email protected]> | 2021-08-19 23:40:09 +0200 |
commit | 9664efeb5b869bbe6bf932b0957e9faaaaf6af5a (patch) | |
tree | 0e63d4513fcf2c978216b2e6d6768ebc95f4272c | |
parent | 9dbacd465ab733d4ac415ccfaf4a0503387377e8 (diff) |
ARM: s3c: delete unneed local variable "delay"
"delay" variable on line 79 can be deleted by returning "0" on line 88.
Signed-off-by: Jason Wang <[email protected]>
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]'
Signed-off-by: Arnd Bergmann <[email protected]>
-rw-r--r-- | arch/arm/mach-s3c/mach-gta02.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-s3c/mach-gta02.c b/arch/arm/mach-s3c/mach-gta02.c index aec8b451c016..418939ce0fc3 100644 --- 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; } |