selftests:timers: globals don't need initialization to 0
authorZan Aziz <zanaziz313@gmail.com>
Sat, 2 Jul 2022 00:08:34 +0000 (18:08 -0600)
committerShuah Khan <skhan@linuxfoundation.org>
Sun, 3 Jul 2022 19:26:45 +0000 (13:26 -0600)
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.

Signed-off-by: Zan Aziz <zanaziz313@gmail.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/timers/alarmtimer-suspend.c

index 54da4b088f4c8983dc433c98c9c4da1377a7bdc2..4332b494103d34a96b38d06413075466e67c5f3f 100644 (file)
@@ -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)
 {