* [PATCH] ASoC: Wrong variable returned on error
@ 2009-12-08 0:34 Roel Kluin
2009-12-08 11:19 ` Liam Girdwood
2009-12-08 12:56 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Roel Kluin @ 2009-12-08 0:34 UTC (permalink / raw)
To: javier.martin, Liam Girdwood, Mark Brown, alsa-devel,
Andrew Morton, LKML
The wrong variable was returned in the case of an error
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
sound/soc/imx/mx1_mx2-pcm.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/sound/soc/imx/mx1_mx2-pcm.c b/sound/soc/imx/mx1_mx2-pcm.c
index b838665..bffffcd 100644
--- a/sound/soc/imx/mx1_mx2-pcm.c
+++ b/sound/soc/imx/mx1_mx2-pcm.c
@@ -322,12 +322,12 @@ static int mx1_mx2_pcm_open(struct snd_pcm_substream *substream)
pr_debug("%s: Requesting dma channel (%s)\n", __func__,
prtd->dma_params->name);
- prtd->dma_ch = imx_dma_request_by_prio(prtd->dma_params->name,
- DMA_PRIO_HIGH);
- if (prtd->dma_ch < 0) {
+ ret = imx_dma_request_by_prio(prtd->dma_params->name, DMA_PRIO_HIGH);
+ if (ret < 0) {
printk(KERN_ERR "Error %d requesting dma channel\n", ret);
return ret;
}
+ prtd->dma_ch = ret;
imx_dma_config_burstlen(prtd->dma_ch,
prtd->dma_params->watermark_level);
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] ASoC: Wrong variable returned on error
2009-12-08 0:34 [PATCH] ASoC: Wrong variable returned on error Roel Kluin
@ 2009-12-08 11:19 ` Liam Girdwood
2009-12-08 12:56 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Liam Girdwood @ 2009-12-08 11:19 UTC (permalink / raw)
To: Roel Kluin; +Cc: javier.martin, Mark Brown, alsa-devel, Andrew Morton, LKML
On Tue, 2009-12-08 at 01:34 +0100, Roel Kluin wrote:
> The wrong variable was returned in the case of an error
>
> Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: Wrong variable returned on error
2009-12-08 0:34 [PATCH] ASoC: Wrong variable returned on error Roel Kluin
2009-12-08 11:19 ` Liam Girdwood
@ 2009-12-08 12:56 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2009-12-08 12:56 UTC (permalink / raw)
To: Roel Kluin; +Cc: javier.martin, Liam Girdwood, alsa-devel, Andrew Morton, LKML
On Tue, Dec 08, 2009 at 01:34:22AM +0100, Roel Kluin wrote:
> The wrong variable was returned in the case of an error
>
> Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-12-08 12:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-08 0:34 [PATCH] ASoC: Wrong variable returned on error Roel Kluin
2009-12-08 11:19 ` Liam Girdwood
2009-12-08 12:56 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox