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

Commit c81a542e authored by Inki Dae's avatar Inki Dae Committed by Greg Kroah-Hartman
Browse files

drm/exynos: vidi: fix a wrong error return



[ Upstream commit 4a059559809fd1ddbf16f847c4d2237309c08edf ]

Fix a wrong error return by dropping an error return.

When vidi driver is remvoed, if ctx->raw_edid isn't same as fake_edid_info
then only what we have to is to free ctx->raw_edid so that driver removing
can work correctly - it's not an error case.

Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
Reviewed-by: default avatarAndi Shyti <andi.shyti@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 948b8b5f
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -483,8 +483,6 @@ static int vidi_remove(struct platform_device *pdev)
	if (ctx->raw_edid != (struct edid *)fake_edid_info) {
		kfree(ctx->raw_edid);
		ctx->raw_edid = NULL;

		return -EINVAL;
	}

	component_del(&pdev->dev, &vidi_component_ops);