summaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c
diff options
context:
space:
mode:
authorMinghao Chi <chi.minghao@zte.com.cn>2022-04-29 05:51:12 +0000
committerHelge Deller <deller@gmx.de>2022-05-19 11:17:42 +0200
commit40189b7368e509b21cf68f8a6c1aa6c6cdb01561 (patch)
tree9ba16f66a2a4134b9fda4a88f57e32111195a23c /drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c
parentb93a85c145d9c745ae74ad43046e75bbf98adc12 (diff)
downloadlinux-40189b7368e509b21cf68f8a6c1aa6c6cdb01561.tar.bz2
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>
Diffstat (limited to 'drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c')
-rw-r--r--drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c b/drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c
index be9910ff6e62..b407173e27b1 100644
--- a/drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c
+++ b/drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c
@@ -117,16 +117,11 @@ static int nec_8048_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.dpi->connect(in, dssdev);
- if (r)
- return r;
-
- return 0;
+ return in->ops.dpi->connect(in, dssdev);
}
static void nec_8048_disconnect(struct omap_dss_device *dssdev)