ALSA: hda/ca0132 - Fix another smatch warning
authorTakashi Iwai <tiwai@suse.de>
Tue, 15 Jan 2013 16:41:21 +0000 (17:41 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 15 Jan 2013 16:41:21 +0000 (17:41 +0100)
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>
sound/pci/hda/patch_ca0132.c

index 7668388e8b56c2de0783fdad8bb59ea01aca1abe..f6c949039cab27152530a19c85101b2a6e401bf4 100644 (file)
@@ -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)
This page took 0.026366 seconds and 5 git commands to generate.