Skip to content

Commit 63da097

Browse files
Qinglang Miaosravnborg
authored andcommitted
omapfb: connector-analog-tv: simplify the return expression of tvc_connect()
Simplify the return expression. Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20200921131049.92616-1-miaoqinglang@huawei.com
1 parent 43624b4 commit 63da097

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,13 @@ static int tvc_connect(struct omap_dss_device *dssdev)
4747
{
4848
struct panel_drv_data *ddata = to_panel_data(dssdev);
4949
struct omap_dss_device *in = ddata->in;
50-
int r;
5150

5251
dev_dbg(ddata->dev, "connect\n");
5352

5453
if (omapdss_device_is_connected(dssdev))
5554
return 0;
5655

57-
r = in->ops.atv->connect(in, dssdev);
58-
if (r)
59-
return r;
60-
61-
return 0;
56+
return in->ops.atv->connect(in, dssdev);
6257
}
6358

6459
static void tvc_disconnect(struct omap_dss_device *dssdev)

0 commit comments

Comments
 (0)