From 7090ecad23e84f232648368331cbf41e8d71b6c6 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 21 Aug 2007 13:31:49 +0000 Subject: More coding style cleanup --- audio/pcm_bluetooth.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'audio/pcm_bluetooth.c') diff --git a/audio/pcm_bluetooth.c b/audio/pcm_bluetooth.c index 0547ee3c..31ad2e18 100644 --- a/audio/pcm_bluetooth.c +++ b/audio/pcm_bluetooth.c @@ -211,17 +211,15 @@ static int bluetooth_a2dp_playback_stop(snd_pcm_ioplug_t *io) err = pthread_cancel(a2dp_data->hw_thread); if (err != 0) - goto failed; + return -err; err = pthread_join(a2dp_data->hw_thread, 0); if (err != 0) - goto failed; + return -err; a2dp_data->hw_thread = 0; -failed: - DBG(" - return %d", -err); - return -err; + return 0; } static snd_pcm_sframes_t bluetooth_pointer(snd_pcm_ioplug_t *io) @@ -311,6 +309,7 @@ static int bluetooth_hsp_hw_params(snd_pcm_ioplug_t *io, return 0; err = errno; + SNDERR("%s (%d)", strerror(err), err); return -err; -- cgit