diff options
author | Mikel Astiz <mikel.astiz@bmw-carit.de> | 2012-08-31 12:50:54 +0200 |
---|---|---|
committer | Jaska Uimonen <jaska.uimonen@intel.com> | 2013-01-24 09:29:36 +0200 |
commit | df365d7b6e9c50f78c584ba6feaaab3dc61d9517 (patch) | |
tree | bb97f172e27d8be5a9ae94043eb7917c55a1c69d | |
parent | 62dd438cd86fa003b6a47aaf137f72d09efb5e10 (diff) | |
download | pulseaudio-panda-df365d7b6e9c50f78c584ba6feaaab3dc61d9517.tar.gz pulseaudio-panda-df365d7b6e9c50f78c584ba6feaaab3dc61d9517.tar.bz2 pulseaudio-panda-df365d7b6e9c50f78c584ba6feaaab3dc61d9517.zip |
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.
-rw-r--r-- | src/modules/bluetooth/module-bluetooth-device.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c index ead78ccc..1502b9f4 100644 --- a/src/modules/bluetooth/module-bluetooth-device.c +++ b/src/modules/bluetooth/module-bluetooth-device.c @@ -244,7 +244,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; @@ -277,8 +277,6 @@ static int setup_stream(struct userdata *u) { 10, pa_rtclock_now(), TRUE); - - return 0; } static void bt_transport_release(struct userdata *u) { @@ -346,7 +344,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 */ |