From: Andre Noll <maan@systemlinux.org>
Date: Mon, 9 Mar 2009 21:43:04 +0000 (+0100)
Subject: audiod: Change return value of open_current_receiver() to void.
X-Git-Tag: v0.3.4~41
X-Git-Url: https://git.tuebingen.mpg.de/?a=commitdiff_plain;h=70812d3cc48848784ea4c051fb47cdba965d2c9b;p=paraslash.git

audiod: Change return value of open_current_receiver() to void.

Its single caller ignores the return value.
---

diff --git a/audiod.c b/audiod.c
index 3194501b..d771fa68 100644
--- a/audiod.c
+++ b/audiod.c
@@ -474,20 +474,20 @@ static int receiver_running(int format)
 	return 0;
 }
 
-static int open_current_receiver(struct sched *s)
+static void open_current_receiver(struct sched *s)
 {
 	struct timeval diff;
 	int cafn = stat_task->current_audio_format_num;
 
 	if (cafn < 0 || !stat_task->ct)
-		return 0;
+		return;
 	if (receiver_running(cafn))
-		return 0;
+		return;
 	if (tv_diff(now, &afi[cafn].restart_barrier, &diff) < 0) {
 		s->timeout = diff;
-		return 0;
+		return;
 	}
-	return open_receiver(cafn) < 0? 0 : 1;
+	open_receiver(cafn);
 }
 
 static unsigned compute_time_diff(const struct timeval *status_time)