]> git.tue.mpg.de Git - paraslash.git/commitdiff
audiod: Skip NULL pointer check in compute_time_diff().
authorAndre Noll <maan@systemlinux.org>
Sun, 2 Feb 2014 19:45:08 +0000 (20:45 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 22 Feb 2014 15:52:06 +0000 (16:52 +0100)
We never pass a NULL pointer to this function.

audiod.c

index ddbe9d8bfb58550deb89cb771815362af7a1f78b..e207c7586625dbb49595cb85d992284f157e3d72 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -649,8 +649,6 @@ static void compute_time_diff(const struct timeval *status_time)
        const struct timeval max_deviation = {0, 500 * 1000};
        const int time_smooth = 5;
 
-       if (!status_time)
-               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);