diff options
author | Liu Shixin <liushixin2@huawei.com> | 2020-09-15 11:26:27 +0800 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2020-10-17 08:10:10 +0200 |
commit | 7604caa1f09911a290fcfa1f57ff2e573af0e887 (patch) | |
tree | b4c64af4b844600a428d157a381c8faf09ae7afd /drivers/video/fbdev/omap2/omapfb/displays | |
parent | f215d6003736c48b894f2d9bf9c26855c2f3918d (diff) | |
download | linux-7604caa1f09911a290fcfa1f57ff2e573af0e887.tar.gz linux-7604caa1f09911a290fcfa1f57ff2e573af0e887.tar.bz2 linux-7604caa1f09911a290fcfa1f57ff2e573af0e887.zip |
omapfb: connector-dvi: simplify the return expression of dvic_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/20200915032627.1772517-1-liushixin2@huawei.com
Diffstat (limited to 'drivers/video/fbdev/omap2/omapfb/displays')
-rw-r--r-- | drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c b/drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c index b4a1aefff766..2fa436475b40 100644 --- a/drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c +++ b/drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c @@ -51,16 +51,11 @@ static int dvic_connect(struct omap_dss_device *dssdev) { struct panel_drv_data *ddata = to_panel_data(dssdev); struct omap_dss_device *in = ddata->in; - int r; if (omapdss_device_is_connected(dssdev)) return 0; - r = in->ops.dvi->connect(in, dssdev); - if (r) - return r; - - return 0; + return in->ops.dvi->connect(in, dssdev); } static void dvic_disconnect(struct omap_dss_device *dssdev) |