diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-05-18 11:48:28 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-05-22 10:59:15 +0300 |
commit | 4a75cb857d2ec5f8f40f23a817ec162b93661bae (patch) | |
tree | da91b912bbaf9cbc567f8e0883a8f626d484d16d /drivers/video/omap2/omapfb/omapfb.h | |
parent | c6eee968d40d319f0ac7a8a63dcbc633d9e6a2ea (diff) | |
download | linux-4a75cb857d2ec5f8f40f23a817ec162b93661bae.tar.gz linux-4a75cb857d2ec5f8f40f23a817ec162b93661bae.tar.bz2 linux-4a75cb857d2ec5f8f40f23a817ec162b93661bae.zip |
OMAPFB: 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/omapfb/omapfb.h')
-rw-r--r-- | drivers/video/omap2/omapfb/omapfb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/omap2/omapfb/omapfb.h b/drivers/video/omap2/omapfb/omapfb.h index c0bdc9b54ecf..30361a09aecd 100644 --- a/drivers/video/omap2/omapfb/omapfb.h +++ b/drivers/video/omap2/omapfb/omapfb.h @@ -166,6 +166,7 @@ static inline struct omapfb_display_data *get_display_data( /* This should never happen */ BUG(); + return NULL; } static inline void omapfb_lock(struct omapfb2_device *fbdev) |