From e98ed38ca9c9328f88e0b2fab376020049e4a7fb Mon Sep 17 00:00:00 2001 From: Víctor Manuel Jáquez Leal Date: Mon, 2 Apr 2012 18:08:29 +0200 Subject: omap: fix compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Rob Clark --- omap/omap_drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omap/omap_drm.c b/omap/omap_drm.c index e61180658..96e187176 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, -- cgit v1.2.3