[PATCH] ASoC: imx-hdmi: Fix warning of the uninitialized variable ret

Nicolin Chen nicoleotsuka at gmail.com
Wed Dec 16 12:06:06 CET 2020


On Wed, Dec 16, 2020 at 06:44:24PM +0800, Shengjiu Wang wrote:
> From: shengjiu wang <shengjiu.wang at nxp.com>
> 
> When condition ((hdmi_out && hdmi_in) || (!hdmi_out && !hdmi_in))
> is true, then goto fail, the uninitialized variable ret will be
> returned.
> 
> Signed-off-by: shengjiu wang <shengjiu.wang at nxp.com>
> Reported-by: kernel test robot <lkp at intel.com>

Acked-by: Nicolin Chen <nicoleotsuka at gmail.com>


More information about the Alsa-devel mailing list