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: 8f83f26891
("drm/mediatek: Add HDMI support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
This commit is contained in:
parent
d6db988a44
commit
2d85978341
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue