Skip to content

Commit 4a05955

Browse files
committed
drm/exynos: vidi: fix a wrong error return
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 <[email protected]> Reviewed-by: Andi Shyti <[email protected]>
1 parent 9561de3 commit 4a05955

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/gpu/drm/exynos/exynos_drm_vidi.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,6 @@ static int vidi_remove(struct platform_device *pdev)
469469
if (ctx->raw_edid != (struct edid *)fake_edid_info) {
470470
kfree(ctx->raw_edid);
471471
ctx->raw_edid = NULL;
472-
473-
return -EINVAL;
474472
}
475473

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

0 commit comments

Comments
 (0)