From 165b6e46b5524e2ed623925fa45d80d11032e716 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 15 May 2008 07:42:17 +0000 Subject: Fix return value for snd_pcm_hw_params() calls --- audio/pcm_bluetooth.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/audio/pcm_bluetooth.c b/audio/pcm_bluetooth.c index 13550663..0dec0a12 100644 --- a/audio/pcm_bluetooth.c +++ b/audio/pcm_bluetooth.c @@ -421,7 +421,11 @@ static int bluetooth_prepare(snd_pcm_ioplug_t *io) } /* wake up any client polling at us */ - return write(data->pipefd[1], &c, 1); + err = write(data->pipefd[1], &c, 1); + if (err < 0) + return err; + + return 0; } static int bluetooth_hsp_hw_params(snd_pcm_ioplug_t *io, -- cgit