diff options
author | Felipe Pena <felipensp@gmail.com> | 2013-10-16 13:46:58 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-10-16 21:35:53 -0700 |
commit | c88b05b2cd07221cdefd56f7f7422c1459eb60c9 (patch) | |
tree | 89e985cae2cfda5e2019dc78c4e82c8a0a5095d5 /tools/testing/selftests/timers/posix_timers.c | |
parent | 87fc0ad2ad8a15de653f4cef7760fa35e689077f (diff) | |
download | linux-stable-c88b05b2cd07221cdefd56f7f7422c1459eb60c9.tar.gz linux-stable-c88b05b2cd07221cdefd56f7f7422c1459eb60c9.tar.bz2 linux-stable-c88b05b2cd07221cdefd56f7f7422c1459eb60c9.zip |
tools/testing/selftests: fix uninitialized variable
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>
Diffstat (limited to 'tools/testing/selftests/timers/posix_timers.c')
-rw-r--r-- | tools/testing/selftests/timers/posix_timers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/timers/posix_timers.c b/tools/testing/selftests/timers/posix_timers.c index 4fa655d68a81..41bd85559d4b 100644 --- a/tools/testing/selftests/timers/posix_timers.c +++ b/tools/testing/selftests/timers/posix_timers.c @@ -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; |