Skip to content

Commit ea65a99

Browse files
Qinglang Miaosravnborg
authored andcommitted
omapfb: connector-hdmi: simplify the return expression of hdmic_connect
Simplify the return expression. Signed-off-by: Qinglang 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
1 parent 63da097 commit ea65a99

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,13 @@ static int hdmic_connect(struct omap_dss_device *dssdev)
5050
{
5151
struct panel_drv_data *ddata = to_panel_data(dssdev);
5252
struct omap_dss_device *in = ddata->in;
53-
int r;
5453

5554
dev_dbg(ddata->dev, "connect\n");
5655

5756
if (omapdss_device_is_connected(dssdev))
5857
return 0;
5958

60-
r = in->ops.hdmi->connect(in, dssdev);
61-
if (r)
62-
return r;
63-
64-
return 0;
59+
return in->ops.hdmi->connect(in, dssdev);
6560
}
6661

6762
static void hdmic_disconnect(struct omap_dss_device *dssdev)

0 commit comments

Comments
 (0)