diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-21 13:31:49 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-21 13:31:49 +0000 |
commit | 7090ecad23e84f232648368331cbf41e8d71b6c6 (patch) | |
tree | 40eacad444504b33ef26329c203960ea8203a443 | |
parent | d595791da3d0ce8a20e638f3d0648ccdf78bb55a (diff) |
More coding style cleanup
-rw-r--r-- | audio/pcm_bluetooth.c | 9 |
1 files changed, 4 insertions, 5 deletions
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; |