bluetooth: Remove return value of setup_stream()

The function setup_stream() never fails so the code can be simplified by
just removing the return value.
This commit is contained in:
Mikel Astiz 2012-08-31 12:50:54 +02:00 committed by Arun Raghavan
parent 49f5c111bd
commit 4d2748ef5c

View file

@ -245,7 +245,7 @@ static void a2dp_set_bitpool(struct userdata *u, uint8_t bitpool)
/* from IO thread, except in SCO over PCM */
static int setup_stream(struct userdata *u) {
static void setup_stream(struct userdata *u) {
struct pollfd *pollfd;
int one;
@ -278,8 +278,6 @@ static int setup_stream(struct userdata *u) {
10,
pa_rtclock_now(),
TRUE);
return 0;
}
static void bt_transport_release(struct userdata *u) {
@ -347,7 +345,9 @@ static int bt_transport_acquire(struct userdata *u, pa_bool_t start) {
done:
pa_log_info("Transport %s resuming", u->transport);
return setup_stream(u);
setup_stream(u);
return 0;
}
/* Run from IO thread */