Re: [PATCH -next] ata: palmld: fix return value check in palmld_pata_probe()

From: Yang Yingliang
Date: Mon Apr 25 2022 - 02:01:43 EST



On 2022/4/25 0:55, Sergey Shtylyov wrote:
Hello!

You should CC: me on the PATA driver patches, not Bart -- he no longer maintains
the PATA drivers.
OK.

Thanks,
Yang

On 4/24/22 12:34 PM, Yang Yingliang wrote:

If devm_platform_ioremap_resource() fails, it never return
NULL pointer, replace the check with IS_ERR().

Fixes: 57bf0f5a162d ("ARM: pxa: use pdev resource for palmld mmio")
Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
Signed-off-by: Yang Yingliang <yangyingliang@xxxxxxxxxx>
[...]

Reviewed-by: Sergey Shtylyov <s.shtylyov@xxxxxx>

MBR, Sergey
.