diff options
author | Arnd Bergmann <arnd@arndb.de> | 2021-03-22 17:41:57 +0100 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2021-03-26 09:13:37 +0200 |
commit | 417fc6123b4a60c60b770e756cc3e001d764e480 (patch) | |
tree | 1c53c7cdca77781ba5a07eea4077503030a7bfc2 /drivers/gpu/drm/omapdrm/dss/dsi.c | |
parent | ce517f18944e3f8d08484cfdee425277fc2c4df6 (diff) | |
download | linux-417fc6123b4a60c60b770e756cc3e001d764e480.tar.gz linux-417fc6123b4a60c60b770e756cc3e001d764e480.tar.bz2 linux-417fc6123b4a60c60b770e756cc3e001d764e480.zip |
drm/omap: fix misleading indentation in pixinc()
An old patch added a 'return' statement after each BUG() in this driver,
which was necessary at the time, but has become redundant after the BUG()
definition was updated to handle this properly.
gcc-11 now warns about one such instance, where the 'return' statement
was incorrectly indented:
drivers/gpu/drm/omapdrm/dss/dispc.c: In function ‘pixinc’:
drivers/gpu/drm/omapdrm/dss/dispc.c:2093:9: error: this ‘else’ clause does not guard... [-Werror=misleading-indentation]
2093 | else
| ^~~~
drivers/gpu/drm/omapdrm/dss/dispc.c:2095:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
2095 | return 0;
| ^~~~~~
Address this by removing the return again and changing the BUG()
to be unconditional to make this more intuitive.
Fixes: c6eee968d40d ("OMAPDSS: remove compiler warnings when CONFIG_BUG=n")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210322164203.827324-1-arnd@kernel.org
Diffstat (limited to 'drivers/gpu/drm/omapdrm/dss/dsi.c')
0 files changed, 0 insertions, 0 deletions