Skip to content

Commit 10732a0

Browse files
Qinglang Miaosravnborg
authored andcommitted
omapfb: panel-sony-acx565akm: simplify the return expression of acx565akm_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/20200921131052.92707-1-miaoqinglang@huawei.com
1 parent ea65a99 commit 10732a0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -506,16 +506,11 @@ static int acx565akm_connect(struct omap_dss_device *dssdev)
506506
{
507507
struct panel_drv_data *ddata = to_panel_data(dssdev);
508508
struct omap_dss_device *in = ddata->in;
509-
int r;
510509

511510
if (omapdss_device_is_connected(dssdev))
512511
return 0;
513512

514-
r = in->ops.sdi->connect(in, dssdev);
515-
if (r)
516-
return r;
517-
518-
return 0;
513+
return in->ops.sdi->connect(in, dssdev);
519514
}
520515

521516
static void acx565akm_disconnect(struct omap_dss_device *dssdev)

0 commit comments

Comments
 (0)