Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aed45ab4 authored by Dan Carpenter's avatar Dan Carpenter Committed by Inki Dae
Browse files

drm/exynos: IS_ERR() vs NULL bug



of_iomap() doesn't return error pointers, it returns NULL on error.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarGustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent 5fcc3c88
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -888,8 +888,8 @@ static int decon_probe(struct platform_device *pdev)
	of_node_put(i80_if_timings);

	ctx->regs = of_iomap(dev->of_node, 0);
	if (IS_ERR(ctx->regs)) {
		ret = PTR_ERR(ctx->regs);
	if (!ctx->regs) {
		ret = -ENOMEM;
		goto err_del_component;
	}