Commit 9664efeb authored by Jason Wang's avatar Jason Wang Committed by Arnd Bergmann

ARM: s3c: delete unneed local variable "delay"

"delay" variable on line 79 can be deleted by returning "0" on line 88.
Signed-off-by: default avatarJason Wang <wangborong@cdjrlc.com>
Signed-off-by: default avatarKrzysztof 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: default avatarArnd Bergmann <arnd@arndb.de>
parent 9dbacd46
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment