drm, ttm Fix uninitialized warning
authorPrarit Bhargava <prarit@redhat.com>
Fri, 13 Sep 2013 12:33:34 +0000 (08:33 -0400)
committerDave Airlie <airlied@redhat.com>
Thu, 19 Sep 2013 01:51:51 +0000 (11:51 +1000)
commitbcf73a10837e9695f5ca7e3e65bf6ce850692d41
treec88a7612b70015aeebfe92f59be6b8fbc8074a35
parent182b17c8dc4e83aab000ce86587b6810e515da87
drm, ttm Fix uninitialized warning

Fix uninitialized warning.

drivers/gpu/drm/ttm/ttm_object.c: In function ‘ttm_base_object_lookup’:
drivers/gpu/drm/ttm/ttm_object.c:213:10: error: ‘base’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
  kref_put(&base->refcount, ttm_release_base);
          ^
drivers/gpu/drm/ttm/ttm_object.c:221:26: note: ‘base’ was declared here
  struct ttm_base_object *base;

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/ttm_object.c