Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c88b05b2 authored by Felipe Pena's avatar Felipe Pena Committed by Linus Torvalds
Browse files

tools/testing/selftests: fix uninitialized variable



The err variable is intended to receive the timer_create() return before
checking it

Signed-off-by: default avatarFelipe Pena <felipensp@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 87fc0ad2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;