diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-05-18 10:47:02 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-05-22 09:59:14 +0200 |
commit | c6eee968d40d319f0ac7a8a63dcbc633d9e6a2ea (patch) | |
tree | 69c37f169f25f8fad858b032508d2a1c2cd5c8ea /drivers/video/omap2/dss/venc.c | |
parent | OMAPDSS: DISPC: fix usage of dispc_ovl_set_accu_uv (diff) | |
download | linux-c6eee968d40d319f0ac7a8a63dcbc633d9e6a2ea.tar.xz linux-c6eee968d40d319f0ac7a8a63dcbc633d9e6a2ea.zip |
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>
Diffstat (limited to 'drivers/video/omap2/dss/venc.c')
-rw-r--r-- | drivers/video/omap2/dss/venc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/venc.c b/drivers/video/omap2/dss/venc.c index 178c40d3312e..1dbf1550773e 100644 --- a/drivers/video/omap2/dss/venc.c +++ b/drivers/video/omap2/dss/venc.c @@ -415,6 +415,7 @@ static const struct venc_config *venc_timings_to_config( return &venc_config_ntsc_trm; BUG(); + return NULL; } static int venc_power_on(struct omap_dss_device *dssdev) |