omap: fix compiler warning
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Mon, 2 Apr 2012 16:08:29 +0000 (18:08 +0200)
committerRob Clark <rob@ti.com>
Tue, 3 Apr 2012 21:47:48 +0000 (16:47 -0500)
commite98ed38ca9c9328f88e0b2fab376020049e4a7fb
tree20477007c1d10ae776e58db673d00f837b172698
parent06eaf09469f2234bf1ca9790dad2ba391ccceb5a
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>
omap/omap_drm.c