Skip to content

Commit 0e6d630

Browse files
sulixrichardweinberger
authored andcommitted
um: Remove unused timeval_to_ns() function
The timeval_to_ns() function doesn't appear to be used anywhere, as far as I (or git grep) can tell, and clang throws up a warning about it: ../arch/um/os-Linux/time.c:21:25: warning: unused function 'timeval_to_ns' [-Wunused-function] static inline long long timeval_to_ns(const struct timeval *tv) ^ 1 warning generated. Signed-off-by: David Gow <davidgow@google.com> Acked-By: Anton Ivanov <anton.ivanov@cambridgegreys.com> Signed-off-by: Richard Weinberger <richard@nod.at>
1 parent 1a3a6a2 commit 0e6d630

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

arch/um/os-Linux/time.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@
1818

1919
static timer_t event_high_res_timer = 0;
2020

21-
static inline long long timeval_to_ns(const struct timeval *tv)
22-
{
23-
return ((long long) tv->tv_sec * UM_NSEC_PER_SEC) +
24-
tv->tv_usec * UM_NSEC_PER_USEC;
25-
}
26-
2721
static inline long long timespec_to_ns(const struct timespec *ts)
2822
{
2923
return ((long long) ts->tv_sec * UM_NSEC_PER_SEC) + ts->tv_nsec;

0 commit comments

Comments
 (0)