Skip to content

Commit 533278c

Browse files
Liu Shixinsravnborg
authored andcommitted
omapfb: simplify the return expression of sharp_ls_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/20200921082444.2591773-1-liushixin2@huawei.com
1 parent ef27afa commit 533278c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,11 @@ static int sharp_ls_connect(struct omap_dss_device *dssdev)
5959
{
6060
struct panel_drv_data *ddata = to_panel_data(dssdev);
6161
struct omap_dss_device *in = ddata->in;
62-
int r;
6362

6463
if (omapdss_device_is_connected(dssdev))
6564
return 0;
6665

67-
r = in->ops.dpi->connect(in, dssdev);
68-
if (r)
69-
return r;
70-
71-
return 0;
66+
return in->ops.dpi->connect(in, dssdev);
7267
}
7368

7469
static void sharp_ls_disconnect(struct omap_dss_device *dssdev)

0 commit comments

Comments
 (0)