Skip to content

Commit

Permalink
selftests:timers: globals don't need initialization to 0
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zan Aziz authored and Shuah Khan committed Jul 3, 2022
1 parent 8587f37 commit b7ecce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/timers/alarmtimer-suspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit b7ecce6

Please sign in to comment.