Skip to content

Commit ef27afa

Browse files
Liu Shixinsravnborg
authored andcommitted
omapfb: simplify the return expression of panel_dpi_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/20200921082443.2591721-1-liushixin2@huawei.com
1 parent 9e9b18b commit ef27afa

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,11 @@ static int panel_dpi_connect(struct omap_dss_device *dssdev)
3737
{
3838
struct panel_drv_data *ddata = to_panel_data(dssdev);
3939
struct omap_dss_device *in = ddata->in;
40-
int r;
4140

4241
if (omapdss_device_is_connected(dssdev))
4342
return 0;
4443

45-
r = in->ops.dpi->connect(in, dssdev);
46-
if (r)
47-
return r;
48-
49-
return 0;
44+
return in->ops.dpi->connect(in, dssdev);
5045
}
5146

5247
static void panel_dpi_disconnect(struct omap_dss_device *dssdev)

0 commit comments

Comments
 (0)