Re: [PATCH] ASoC: mediatek: Fix error handling

2020-05-06 Thread Mark Brown
On Wed, 6 May 2020 22:30:09 +0800, Tang Bin wrote: > If the function platform_get_irq() failed, the negative value > returned will not be detected here. So fix error handling in > mt6797_afe_pcm_dev_probe(). And when get irq failed, the function > platform_get_irq() logs an error message, so remove

[PATCH] ASoC: mediatek: Fix error handling

2020-05-06 Thread Tang Bin
If the function platform_get_irq() failed, the negative value returned will not be detected here. So fix error handling in mt6797_afe_pcm_dev_probe(). And when get irq failed, the function platform_get_irq() logs an error message, so remove redundant message here. Signed-off-by: Zhang Shengju Sig