audiod: Make compute_time_diff() return void.
authorAndre Noll <maan@systemlinux.org>
Sun, 2 Feb 2014 19:43:55 +0000 (20:43 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 22 Feb 2014 15:52:06 +0000 (16:52 +0100)
Its single caller does not care about the return value.

audiod.c

index 1d74fb0..ddbe9d8 100644 (file)
--- 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)