From 67d6243694e36deb43eb8bf246871d3e266b1cb2 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 2 Feb 2014 20:43:55 +0100 Subject: [PATCH] audiod: Make compute_time_diff() return void. Its single caller does not care about the return value. --- audiod.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/audiod.c b/audiod.c index 1d74fb0f..ddbe9d8b 100644 --- a/audiod.c +++ b/audiod.c @@ -641,7 +641,7 @@ static bool must_start_decoder(void) return true; } -static unsigned compute_time_diff(const struct timeval *status_time) +static void compute_time_diff(const struct timeval *status_time) { struct timeval tmp, diff; static unsigned count; @@ -650,7 +650,7 @@ static unsigned compute_time_diff(const struct timeval *status_time) const int time_smooth = 5; if (!status_time) - return count; + return; sign = tv_diff(status_time, now, &diff); // PARA_NOTICE_LOG("%s: sign = %i, sa_time_diff_sign = %i\n", __func__, // sign, sa_time_diff_sign); @@ -680,7 +680,6 @@ static unsigned compute_time_diff(const struct timeval *status_time) ); out: stat_task->sa_time_diff_sign = sa_time_diff_sign; - return count; } static int update_item(int itemnum, char *buf) -- 2.39.5