]> git.alsa-project.org Git - alsa-lib.git/commitdiff
pcm: hw: Don't return in a void function
authorMichael Forney <mforney@mforney.org>
Wed, 12 Jun 2019 06:08:11 +0000 (23:08 -0700)
committerTakashi Iwai <tiwai@suse.de>
Wed, 12 Jun 2019 06:52:36 +0000 (08:52 +0200)
A return statement with an expression in a function returning void is
a constraint violation.

Signed-off-by: Michael Forney <mforney@mforney.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_hw.c

index 77d4dae1b20bd835a4f621b9e522a5f2f5ed4db3..2028790eba78b3a7253214d158b0d0d992421e35 100644 (file)
@@ -1171,7 +1171,7 @@ static void __fill_chmap_ctl_id(snd_ctl_elem_id_t *id, int dev, int subdev,
 static void fill_chmap_ctl_id(snd_pcm_t *pcm, snd_ctl_elem_id_t *id)
 {
        snd_pcm_hw_t *hw = pcm->private_data;
-       return __fill_chmap_ctl_id(id, hw->device, hw->subdevice, pcm->stream);
+       __fill_chmap_ctl_id(id, hw->device, hw->subdevice, pcm->stream);
 }
 
 static int is_chmap_type(int type)