drm: rockchip: rk628: fix warning of missing error code 'ret'

Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: I9d0001ed94ac0e2d885e62f22e3363a3421f89c8
This commit is contained in:
Chen Shunqing
2022-06-06 06:47:33 +00:00
committed by Tao Huang
parent 6a7c205275
commit ee7fc73e2f

View File

@@ -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;
}