video: fbdev: imxfb: fix return value check in imxfb_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Fri, 29 Jul 2022 02:41:34 +0000 (10:41 +0800)
committerHelge Deller <deller@gmx.de>
Fri, 29 Jul 2022 20:59:05 +0000 (22:59 +0200)
commitc5c7502e960d9128eae1a5663fb62506d8685ac3
tree4ac4333c953953f757e477cd844e5b494eb13b38
parent3eb8fccc244bfb41a7961969e4db280d44911226
video: fbdev: imxfb: fix return value check in imxfb_probe()

If devm_ioremap_resource() fails, it never return NULL, replace
NULL test with IS_ERR().

Fixes: b083c22d5114 ("video: fbdev: imxfb: Convert request_mem_region + ioremap to devm_ioremap_resource")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/imxfb.c