summaryrefslogtreecommitdiff
path: root/sound/pci/hda/patch_ca0132.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-01-15 16:41:21 (GMT)
committerTakashi Iwai <tiwai@suse.de>2013-01-15 16:41:21 (GMT)
commit425a7880e804f6147b520aecee522e4172c98e83 (patch)
tree1e1a241e944fc76a93b5d2097f074b0a3ae41fa5 /sound/pci/hda/patch_ca0132.c
parentb645d79619e8b15e91cc7df23c5f8a23d0d69377 (diff)
downloadlinux-425a7880e804f6147b520aecee522e4172c98e83.tar.xz
ALSA: hda/ca0132 - Fix another smatch warning
sound/pci/hda/patch_ca0132.c:1781 dspxfr_one_seg() info: why not propagate 'status' from dsp_dma_stop() instead of (-5)? Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_ca0132.c')
-rw-r--r--sound/pci/hda/patch_ca0132.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c
index 7668388..f6c9490 100644
--- a/sound/pci/hda/patch_ca0132.c
+++ b/sound/pci/hda/patch_ca0132.c
@@ -2325,7 +2325,7 @@ static int dspxfr_one_seg(struct hda_codec *codec,
if (!comm_dma_setup_done) {
status = dsp_dma_stop(codec, dma_chan, ovly);
if (status < 0)
- return -EIO;
+ return status;
status = dsp_dma_setup_common(codec, chip_addx,
dma_chan, port_map_mask, ovly);
if (status < 0)