Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Liu Shixin and committed by
Sam Ravnborg
7604caa1 f215d600

+1 -6
+1 -6
drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c
··· 51 51 { 52 52 struct panel_drv_data *ddata = to_panel_data(dssdev); 53 53 struct omap_dss_device *in = ddata->in; 54 - int r; 55 54 56 55 if (omapdss_device_is_connected(dssdev)) 57 56 return 0; 58 57 59 - r = in->ops.dvi->connect(in, dssdev); 60 - if (r) 61 - return r; 62 - 63 - return 0; 58 + return in->ops.dvi->connect(in, dssdev); 64 59 } 65 60 66 61 static void dvic_disconnect(struct omap_dss_device *dssdev)