diff options
author | Dave Airlie <airlied@redhat.com> | 2009-12-10 00:59:32 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-12-10 00:59:32 -0500 |
commit | 4361e52ad0372e6fd2240a2207b49a4de1f45ca9 (patch) | |
tree | 2cd3ddedf71ff0671f93dec4b8eac2fb63c2fd16 | |
parent | 115a5c2ba0aac55e1bac390f271c818c3cbfa1fb (diff) |
drm/radeon/kms: fix warning about cur_placement being uninitialised.
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_gem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_gem.c b/drivers/gpu/drm/radeon/radeon_gem.c index e927f998f76f..2944486871b0 100644 --- a/drivers/gpu/drm/radeon/radeon_gem.c +++ b/drivers/gpu/drm/radeon/radeon_gem.c | |||
@@ -268,7 +268,7 @@ int radeon_gem_busy_ioctl(struct drm_device *dev, void *data, | |||
268 | struct drm_gem_object *gobj; | 268 | struct drm_gem_object *gobj; |
269 | struct radeon_bo *robj; | 269 | struct radeon_bo *robj; |
270 | int r; | 270 | int r; |
271 | uint32_t cur_placement; | 271 | uint32_t cur_placement = 0; |
272 | 272 | ||
273 | gobj = drm_gem_object_lookup(dev, filp, args->handle); | 273 | gobj = drm_gem_object_lookup(dev, filp, args->handle); |
274 | if (gobj == NULL) { | 274 | if (gobj == NULL) { |