From ee7fc73e2f25dbca66feead71a819b8ef043b0b9 Mon Sep 17 00:00:00 2001 From: Chen Shunqing Date: Mon, 6 Jun 2022 06:47:33 +0000 Subject: [PATCH] drm: rockchip: rk628: fix warning of missing error code 'ret' Signed-off-by: Chen Shunqing Change-Id: I9d0001ed94ac0e2d885e62f22e3363a3421f89c8 --- drivers/gpu/drm/rockchip/rk628/rk628_hdmi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/rockchip/rk628/rk628_hdmi.c b/drivers/gpu/drm/rockchip/rk628/rk628_hdmi.c index edf7e71ea23b..29b5fcb2d3bc 100644 --- a/drivers/gpu/drm/rockchip/rk628/rk628_hdmi.c +++ b/drivers/gpu/drm/rockchip/rk628/rk628_hdmi.c @@ -1564,6 +1564,7 @@ static int rk628_hdmi_probe(struct platform_device *pdev) hdmi->extcon = devm_extcon_dev_allocate(hdmi->dev, rk628_hdmi_cable); if (IS_ERR(hdmi->extcon)) { dev_err(hdmi->dev, "allocate extcon failed\n"); + ret = PTR_ERR(hdmi->extcon); goto fail; }