OpenCloudOS-Kernel/drivers/video/fbdev/omap2/omapfb
Anders Roxell 4c83c2f75a fbdev: omap2: fix warnings in dss core
Commit 60d2fa0dad ("fbdev: omap2: no need to check return value of
debugfs_create functions") changed the declaration of the return value
of function dss_debugfs_create_file() and the following two warnings
appeared:

drivers/video/fbdev/omap2/omapfb/dss/core.c: In function ‘dss_debugfs_create_file’:
drivers/video/fbdev/omap2/omapfb/dss/core.c:139:9: warning: ‘return’ with a value,
 in function returning void
  return 0;
         ^
drivers/video/fbdev/omap2/omapfb/dss/core.c: In function ‘omap_dss_probe’:
drivers/video/fbdev/omap2/omapfb/dss/core.c:172:6: warning: unused variable ‘r’
 [-Wunused-variable]
  int r;
      ^

Rework so function dss_debugfs_create_file() that is declared to return
void don't 'return 0' and remove the declaration of the unused variable
'r'.

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
2019-03-01 15:45:09 +01:00
..
displays fbdev changes for v4.19: 2018-08-23 15:44:58 -07:00
dss fbdev: omap2: fix warnings in dss core 2019-03-01 15:45:09 +01:00
Kconfig fb_omap2: add gpiolib dependency 2018-06-08 18:08:12 +02:00
Makefile omapfb: rename omap2 module to omap2fb.ko 2018-07-24 19:11:27 +02:00
omapfb-ioctl.c fbdev fixes for v5.0-rc3: 2019-01-19 05:43:05 +12:00
omapfb-main.c media: omap2: omapfb: fix boolreturn.cocci warnings 2018-08-02 19:01:05 -04:00
omapfb-sysfs.c omapfb: Create new header file for omapfb DSS implementation 2016-06-03 16:06:38 +03:00
omapfb.h dma-mapping: use unsigned long for dma_attrs 2016-08-04 08:50:07 -04:00
vrfb.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00