Skip to content

Commit 9664efe

Browse files
Jason Wangarndb
authored andcommitted
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 <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>
1 parent 9dbacd4 commit 9664efe

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

arch/arm/mach-s3c/mach-gta02.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,12 @@ static struct pcf50633 *gta02_pcf;
7979

8080
static long gta02_panic_blink(int state)
8181
{
82-
long delay = 0;
8382
char led;
8483

8584
led = (state) ? 1 : 0;
8685
gpio_direction_output(GTA02_GPIO_AUX_LED, led);
8786

88-
return delay;
87+
return 0;
8988
}
9089

9190

0 commit comments

Comments
 (0)