aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/testing/selftests/timers/posix_timers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/timers/posix_timers.c b/tools/testing/selftests/timers/posix_timers.c
index 5a246a02dff3..15cf56d32155 100644
--- a/tools/testing/selftests/timers/posix_timers.c
+++ b/tools/testing/selftests/timers/posix_timers.c
@@ -122,7 +122,7 @@ static int check_itimer(int which)
122 else if (which == ITIMER_REAL) 122 else if (which == ITIMER_REAL)
123 idle_loop(); 123 idle_loop();
124 124
125 gettimeofday(&end, NULL); 125 err = gettimeofday(&end, NULL);
126 if (err < 0) { 126 if (err < 0) {
127 perror("Can't call gettimeofday()\n"); 127 perror("Can't call gettimeofday()\n");
128 return -1; 128 return -1;
@@ -175,7 +175,7 @@ static int check_timer_create(int which)
175 175
176 user_loop(); 176 user_loop();
177 177
178 gettimeofday(&end, NULL); 178 err = gettimeofday(&end, NULL);
179 if (err < 0) { 179 if (err < 0) {
180 perror("Can't call gettimeofday()\n"); 180 perror("Can't call gettimeofday()\n");
181 return -1; 181 return -1;