Skip to content

Commit

Permalink
tools/testing/selftests: fix uninitialized variable
Browse files Browse the repository at this point in the history
The err variable is intended to receive the timer_create() return before
checking it

Signed-off-by: Felipe Pena <felipensp@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Felipe Pena authored and Linus Torvalds committed Oct 17, 2013
1 parent 87fc0ad commit c88b05b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/timers/posix_timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ static int check_timer_create(int which)
fflush(stdout);

done = 0;
timer_create(which, NULL, &id);
err = timer_create(which, NULL, &id);
if (err < 0) {
perror("Can't create timer\n");
return -1;
Expand Down

0 comments on commit c88b05b

Please sign in to comment.