diff options
author | Qinglang Miao <miaoqinglang@huawei.com> | 2020-09-21 15:10:51 +0200 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2020-10-16 23:16:28 +0200 |
commit | ea65a99bb85edf63279812662b561677e82b6636 (patch) | |
tree | 34756a964a3aeef216147d32c9b39d52bba94359 /drivers/video/fbdev/omap2 | |
parent | omapfb: connector-analog-tv: simplify the return expression of tvc_connect() (diff) | |
download | linux-ea65a99bb85edf63279812662b561677e82b6636.tar.xz linux-ea65a99bb85edf63279812662b561677e82b6636.zip |
omapfb: connector-hdmi: simplify the return expression of hdmic_connect
Simplify the return expression.
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org> # dropped gpio-cs5535.c changes
Link: https://patchwork.freedesktop.org/patch/msgid/20200921131051.92661-1-miaoqinglang@huawei.com
Diffstat (limited to 'drivers/video/fbdev/omap2')
-rw-r--r-- | drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c b/drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c index 49551afbdbe0..670b9c6eb5a9 100644 --- a/drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c +++ b/drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c @@ -50,18 +50,13 @@ static int hdmic_connect(struct omap_dss_device *dssdev) { struct panel_drv_data *ddata = to_panel_data(dssdev); struct omap_dss_device *in = ddata->in; - int r; dev_dbg(ddata->dev, "connect\n"); if (omapdss_device_is_connected(dssdev)) return 0; - r = in->ops.hdmi->connect(in, dssdev); - if (r) - return r; - - return 0; + return in->ops.hdmi->connect(in, dssdev); } static void hdmic_disconnect(struct omap_dss_device *dssdev) |