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

From: Nicolin Chen
Date: Wed Dec 16 2020 - 06:06:55 EST


On Wed, Dec 16, 2020 at 06:44:24PM +0800, Shengjiu Wang wrote:
> From: shengjiu wang <shengjiu.wang@xxxxxxx>
>
> 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@xxxxxxx>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>

Acked-by: Nicolin Chen <nicoleotsuka@xxxxxxxxx>