Skip to contentSkip to conversation

selftests:timers: globals don't need initialization

PATCH New Zan Aziz 1 participant 1 message Jul 2, 2022

Subsystems (3)
lore
Share & tools
lore

Zan Aziz

author
#0 lore raw

PATCH 1/1 selftests:timers: globals don't need initialization

Global variables do not need to be initialized to 0 and checkpatch flags this error in tools/testing/selftests/timers/alarmtimer-suspend.c:

ERROR: do not initialise globals to 0
+int final_ret = 0;

Fix this checkpatch error.

---
 tools/testing/selftests/timers/alarmtimer-suspend.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/timers/alarmtimer-suspend.c +1 -1
index 54da4b088f4c..4332b494103d 100644
@@ -92,7 +92,7 @@ long long timespec_sub(struct timespec a, struct timespec b)
 	return ret;
 }
 
-int final_ret = 0;
+int final_ret;
 
 void sigalarm(int signo)
 {
Signature · 1 line
2.32.0