summaryrefslogtreecommitdiff
path: root/omap
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2012-04-02 18:08:29 +0200
committerRob Clark <rob@ti.com>2012-04-03 16:47:48 -0500
commite98ed38ca9c9328f88e0b2fab376020049e4a7fb (patch)
tree20477007c1d10ae776e58db673d00f837b172698 /omap
parent06eaf09469f2234bf1ca9790dad2ba391ccceb5a (diff)
omap: fix compiler warning
When compiling with linaro toolchain version 4.6.2 got this warning. CC omap_drm.lo omap_drm.c: In function 'omap_bo_new_impl': omap_drm.c:139:6: warning: 'bo' may be used uninitialized in this function [-Wuninitialized] This patch initialize bo to NULL avoiding the warning. Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com> Signed-off-by: Rob Clark <rob@ti.com>
Diffstat (limited to 'omap')
-rw-r--r--omap/omap_drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/omap/omap_drm.c b/omap/omap_drm.c
index e6118065..96e18717 100644
--- a/omap/omap_drm.c
+++ b/omap/omap_drm.c
@@ -102,7 +102,7 @@ int omap_set_param(struct omap_device *dev, uint64_t param, uint64_t value)
static struct omap_bo * omap_bo_new_impl(struct omap_device *dev,
union omap_gem_size size, uint32_t flags)
{
- struct omap_bo *bo;
+ struct omap_bo *bo = NULL;
struct drm_omap_gem_new req = {
.size = size,
.flags = flags,