From: Michael Forney Date: Wed, 12 Jun 2019 06:08:11 +0000 (-0700) Subject: pcm: hw: Don't return in a void function X-Git-Tag: v1.2.1~51 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=80376889af92ee02f46ccacd53e8b32ce6a21fbb;p=alsa-lib.git pcm: hw: Don't return in a void function A return statement with an expression in a function returning void is a constraint violation. Signed-off-by: Michael Forney Signed-off-by: Takashi Iwai --- diff --git a/src/pcm/pcm_hw.c b/src/pcm/pcm_hw.c index 77d4dae1..2028790e 100644 --- a/src/pcm/pcm_hw.c +++ b/src/pcm/pcm_hw.c @@ -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)