diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-09-11 14:04:29 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-09-11 14:04:29 +0300 |
commit | 8d26ca2a694a7a7385ba83ed56b0803e65dea5a1 (patch) | |
tree | 58bb9c0421dae783a243f2313bee49cfc8fe3dcf /audio/headset.c | |
parent | 0477cf9b6c61ab1f329206f8b40bcf8e8bfbaad5 (diff) |
Fix error return value
Diffstat (limited to 'audio/headset.c')
-rw-r--r-- | audio/headset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/headset.c b/audio/headset.c index b90c1a9c..a7adffd9 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -542,7 +542,7 @@ static int sco_connect(struct audio_device *dev, headset_stream_cb_t cb, err = bt_sco_connect(&dev->src, &dev->dst, sco_connect_cb, dev); if (err < 0) { error("connect: %s (%d)", strerror(-err), -err); - return -err; + return err; } headset_set_state(dev, HEADSET_STATE_PLAY_IN_PROGRESS); |