From 44f2f4bacfcb1d7fe694c767446c1c8686e6ccf2 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 24 Aug 2007 13:00:09 +0000 Subject: Fix return value when receiving an error. --- audio/pcm_bluetooth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/pcm_bluetooth.c b/audio/pcm_bluetooth.c index 0ff1999c..8fb560a4 100644 --- a/audio/pcm_bluetooth.c +++ b/audio/pcm_bluetooth.c @@ -981,7 +981,7 @@ static int bluetooth_cfg(struct bluetooth_data *data, snd_config_t *conf) if (pkt->error != PKT_ERROR_NONE) { SNDERR("Error %d while configuring device", pkt->error); - return pkt->error; + return -pkt->error; } if (cfg->codec != CFG_CODEC_SBC) -- cgit