Re: [PATCH -next] sound: n64: Fix return value check in n64audio_probe()

2021-02-25 Thread Takashi Iwai
On Wed, 24 Feb 2021 02:38:03 +0100, Wei Yongjun wrote: > > In case of error, the function devm_platform_ioremap_resource() > returns ERR_PTR() and never returns NULL. The NULL test in the > return value check should be replaced with IS_ERR(). > > Fixes: 1448f8acf4cc ("sound: Add n64 driver") >

Re: [PATCH -next] sound: n64: Fix return value check in n64audio_probe()

2021-02-23 Thread Lauri Kasanen
On Wed, 24 Feb 2021 01:38:03 + Wei Yongjun wrote: > In case of error, the function devm_platform_ioremap_resource() > returns ERR_PTR() and never returns NULL. The NULL test in the > return value check should be replaced with IS_ERR(). > > Fixes: 1448f8acf4cc ("sound: Add n64 driver") >

[PATCH -next] sound: n64: Fix return value check in n64audio_probe()

2021-02-23 Thread Wei Yongjun
In case of error, the function devm_platform_ioremap_resource() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Fixes: 1448f8acf4cc ("sound: Add n64 driver") Reported-by: Hulk Robot Signed-off-by: Wei Yongjun ---