Commit 2d859783 authored by Dan Carpenter's avatar Dan Carpenter Committed by CK Hu

drm/mediatek: Fix an error code in mtk_hdmi_dt_parse_pdata()

We don't want to overwrite "ret", it already holds the correct error
code.  The "regmap" variable might be a valid pointer as this point.

Fixes: 8f83f268 ("drm/mediatek: Add HDMI support")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarCK Hu <ck.hu@mediatek.com>
parent d6db988a
...@@ -1480,7 +1480,6 @@ static int mtk_hdmi_dt_parse_pdata(struct mtk_hdmi *hdmi, ...@@ -1480,7 +1480,6 @@ static int mtk_hdmi_dt_parse_pdata(struct mtk_hdmi *hdmi,
if (IS_ERR(regmap)) if (IS_ERR(regmap))
ret = PTR_ERR(regmap); ret = PTR_ERR(regmap);
if (ret) { if (ret) {
ret = PTR_ERR(regmap);
dev_err(dev, dev_err(dev,
"Failed to get system configuration registers: %d\n", "Failed to get system configuration registers: %d\n",
ret); ret);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment