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

video: fbdev: omapfb: simplify the return expression of nec_8048_connect()

Simplify the return expression.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: Helge Deller <deller@gmx.de>

authored by

Minghao Chi and committed by
Helge Deller
40189b73 b93a85c1

+1 -6
+1 -6
drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c
··· 117 117 { 118 118 struct panel_drv_data *ddata = to_panel_data(dssdev); 119 119 struct omap_dss_device *in = ddata->in; 120 - int r; 121 120 122 121 if (omapdss_device_is_connected(dssdev)) 123 122 return 0; 124 123 125 - r = in->ops.dpi->connect(in, dssdev); 126 - if (r) 127 - return r; 128 - 129 - return 0; 124 + return in->ops.dpi->connect(in, dssdev); 130 125 } 131 126 132 127 static void nec_8048_disconnect(struct omap_dss_device *dssdev)