]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: remove compiler warnings when CONFIG_BUG=n
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 18 May 2012 08:47:02 +0000 (11:47 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 22 May 2012 07:59:14 +0000 (10:59 +0300)
commit189bfc0a2b0daa4772826b52edf8d5f8bd97bd2d
tree69c37f169f25f8fad858b032508d2a1c2cd5c8ea
parent318eca6218bf3073756e6c4de3ed738753e599b7
OMAPDSS: remove compiler warnings when CONFIG_BUG=n

If CONFIG_BUG is not enabled, BUG() does not stop the execution. Many
places in code expect the execution to stop, and this causes compiler
warnings about uninitialized variables and returning from a non-void
function without a return value.

This patch fixes the warnings by initializing the variables and
returning properly after BUG() lines. However, the behaviour is still
undefined after the BUG, but this is the choice the user makes when
using CONFIG_BUG=n.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dispc.c
drivers/video/omap2/dss/dispc.h
drivers/video/omap2/dss/display.c
drivers/video/omap2/dss/dsi.c
drivers/video/omap2/dss/dss.c
drivers/video/omap2/dss/venc.c