[alsa-devel] [PATCH] ASoC: qcom: Return an error for invalid PCM trigger command

Kenneth Westfield kwestfie at codeaurora.org
Wed Apr 15 01:31:12 CEST 2015


On Mon, Apr 13, 2015 at 02:23:29PM +0200, Takashi Iwai wrote:
> Fix a compile warning
>   sound/soc/qcom/lpass-cpu.c: In function ???lpass_cpu_daiops_trigger???:
>   sound/soc/qcom/lpass-cpu.c:224:2: warning: ???ret??? may be used uninitialized in this function [-Wmaybe-uninitialized]
>     return ret;
>       ^
> Although switch () lists the most of existing cases, it's still better
> to cover the rest as an error properly.
> 
> Signed-off-by: Takashi Iwai <tiwai at suse.de>
> ---
>  sound/soc/qcom/lpass-cpu.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Acked-by: Kenneth Westfield <kwestfie at codeaurora.org>

-- 
Kenneth Westfield
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, 
a Linux Foundation Collaborative Project


More information about the Alsa-devel mailing list