diff options
author | Zan Aziz <zanaziz313@gmail.com> | 2022-07-02 03:08:34 +0300 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2022-07-03 22:26:45 +0300 |
commit | b7ecce6800eb1aa97c486c1aabf64659193d5a4c (patch) | |
tree | c2dbb06d65faa198349c7496ae30d73a0c817e77 /tools/testing/selftests/timers/alarmtimer-suspend.c | |
parent | 8587f3732b37a39de205d8c42f5448dbe6aa6b55 (diff) | |
download | linux-b7ecce6800eb1aa97c486c1aabf64659193d5a4c.tar.xz |
selftests:timers: globals don't need initialization to 0
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>
Diffstat (limited to 'tools/testing/selftests/timers/alarmtimer-suspend.c')
-rw-r--r-- | tools/testing/selftests/timers/alarmtimer-suspend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/timers/alarmtimer-suspend.c b/tools/testing/selftests/timers/alarmtimer-suspend.c index 54da4b088f4c..4332b494103d 100644 --- a/tools/testing/selftests/timers/alarmtimer-suspend.c +++ b/tools/testing/selftests/timers/alarmtimer-suspend.c @@ -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) { |