diff options
author | Anders Roxell <anders.roxell@linaro.org> | 2019-03-01 15:45:09 +0100 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2019-03-01 15:45:09 +0100 |
commit | 4c83c2f75a8f4737a8fb177bb7f2ffe464f567ca (patch) | |
tree | e3d51b1170b4b530db25f374ff2eb8e2997ef0dc /drivers/hid/hid-hyperv.c | |
parent | f40298444e8ca13789dc002ffb269c343aadfb87 (diff) | |
download | linux-4c83c2f75a8f4737a8fb177bb7f2ffe464f567ca.tar.bz2 |
fbdev: omap2: fix warnings in dss core
Commit 60d2fa0dad06 ("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>
Diffstat (limited to 'drivers/hid/hid-hyperv.c')
0 files changed, 0 insertions, 0 deletions