Skip to content

Commit

Permalink
drm/exynos: vidi: fix a wrong error return
Browse files Browse the repository at this point in the history
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: Inki Dae <inki.dae@samsung.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
  • Loading branch information
Inki Dae committed Jun 7, 2023
1 parent 9561de3 commit 4a05955
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/gpu/drm/exynos/exynos_drm_vidi.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,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);
Expand Down

0 comments on commit 4a05955

Please sign in to comment.