Skip to contentSkip to conversation

Delete unneed variable "delay" on line 79

PATCH Applied Jason Wang 2 participants 2 messages Jun 24, 2021 – Jul 20, 2021

Subsystems (3)
lore
Share & tools
lore

Jason Wang

author
#0 lore raw

PATCH 1/1 Delete unneed variable "delay" on line 79

"delay" variable on line 79 can be deleted by returning "0" on line 88.

---
 arch/arm/mach-s3c/mach-gta02.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm/mach-s3c/mach-gta02.c +1 -2
index aec8b451c016..418939ce0fc3 100644
@@ -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;
 }
 
 
Signature · 9 lines
2.31.1




_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#1 lore raw
Quoted 1 line · Jason Wang

"delay" variable on line 79 can be deleted by returning "0" on line 88.

Please use subject prefix matching subsystem
(git log --oneline -- arch/arm/mach-s3c).

Applied, thanks!

[1/1] Delete unneed variable "delay" on line 79

      commit: 8729ca2a6f2dd154e32b6d4858425ba29b012f7f

Best regards,

Signature · 1 line
Krzysztof Kozlowski <[email protected]>