From: Felipe Pena Date: Wed, 16 Oct 2013 20:46:58 +0000 (-0700) Subject: tools/testing/selftests: fix uninitialized variable X-Git-Tag: upstream/snapshot3+hdmi~4141^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c88b05b2cd07221cdefd56f7f7422c1459eb60c9;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Cc: Frederic Weisbecker Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/tools/testing/selftests/timers/posix_timers.c b/tools/testing/selftests/timers/posix_timers.c index 4fa655d..41bd855 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;