Skip to content

Commit 43624b4

Browse files
Liu Shixinsravnborg
authored andcommitted
omapfb: simplify the return expression of tpo_td043_connect
Simplify the return expression. Signed-off-by: Liu Shixin <liushixin2@huawei.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20200921082445.2591825-1-liushixin2@huawei.com
1 parent 533278c commit 43624b4

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -337,16 +337,11 @@ static int tpo_td043_connect(struct omap_dss_device *dssdev)
337337
{
338338
struct panel_drv_data *ddata = to_panel_data(dssdev);
339339
struct omap_dss_device *in = ddata->in;
340-
int r;
341340

342341
if (omapdss_device_is_connected(dssdev))
343342
return 0;
344343

345-
r = in->ops.dpi->connect(in, dssdev);
346-
if (r)
347-
return r;
348-
349-
return 0;
344+
return in->ops.dpi->connect(in, dssdev);
350345
}
351346

352347
static void tpo_td043_disconnect(struct omap_dss_device *dssdev)

0 commit comments

Comments
 (0)