Re: [PATCH -next] ASoC: sprd: Fix return value check in sprd_mcdt_probe()

2019-04-29 Thread Baolin Wang
On Mon, 29 Apr 2019 at 20:15, Wei Yongjun wrote: > > In case of error, the function devm_ioremap_resource() returns ERR_PTR() > and never returns NULL. The NULL test in the return value check should > be replaced with IS_ERR(). > > Fixes: d7bff893e04f ("ASoC: sprd: Add Spreadtrum multi-channel

[PATCH -next] ASoC: sprd: Fix return value check in sprd_mcdt_probe()

2019-04-29 Thread Wei Yongjun
In case of error, the function devm_ioremap_resource() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Fixes: d7bff893e04f ("ASoC: sprd: Add Spreadtrum multi-channel data transfer support") Signed-off-by: Wei Yongjun ---