提交 c88b05b2 编写于 作者: F Felipe Pena 提交者: Linus Torvalds

tools/testing/selftests: fix uninitialized variable

The err variable is intended to receive the timer_create() return before
checking it
Signed-off-by: NFelipe Pena <felipensp@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 87fc0ad2
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册