From a9278d28fc4e948214689db6777ba4065f31ee40 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Mon, 22 Apr 2019 18:09:27 +0100 Subject: [PATCH] timespec: Don't return value from void function timespec_add_msec() doesn't return any values, so don't try to return any. Signed-off-by: Daniel Stone --- shared/timespec-util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/timespec-util.h b/shared/timespec-util.h index ca0156af..f79969bb 100644 --- a/shared/timespec-util.h +++ b/shared/timespec-util.h @@ -81,7 +81,7 @@ timespec_add_nsec(struct timespec *r, const struct timespec *a, int64_t b) static inline void timespec_add_msec(struct timespec *r, const struct timespec *a, int64_t b) { - return timespec_add_nsec(r, a, b * 1000000); + timespec_add_nsec(r, a, b * 1000000); } /* Convert timespec to nanoseconds