Commit ea65a99b authored by Qinglang Miao's avatar Qinglang Miao Committed by Sam Ravnborg

omapfb: connector-hdmi: simplify the return expression of hdmic_connect

Simplify the return expression.
Signed-off-by: default avatarQinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org> # dropped gpio-cs5535.c changes
Link: https://patchwork.freedesktop.org/patch/msgid/20200921131051.92661-1-miaoqinglang@huawei.com
parent 63da0977
...@@ -50,18 +50,13 @@ static int hdmic_connect(struct omap_dss_device *dssdev) ...@@ -50,18 +50,13 @@ static int hdmic_connect(struct omap_dss_device *dssdev)
{ {
struct panel_drv_data *ddata = to_panel_data(dssdev); struct panel_drv_data *ddata = to_panel_data(dssdev);
struct omap_dss_device *in = ddata->in; struct omap_dss_device *in = ddata->in;
int r;
dev_dbg(ddata->dev, "connect\n"); dev_dbg(ddata->dev, "connect\n");
if (omapdss_device_is_connected(dssdev)) if (omapdss_device_is_connected(dssdev))
return 0; return 0;
r = in->ops.hdmi->connect(in, dssdev); return in->ops.hdmi->connect(in, dssdev);
if (r)
return r;
return 0;
} }
static void hdmic_disconnect(struct omap_dss_device *dssdev) static void hdmic_disconnect(struct omap_dss_device *dssdev)
......
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