diff options
author | Eric Anholt <eric@anholt.net> | 2007-12-14 12:52:17 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2007-12-14 14:40:03 -0800 |
commit | 84a076079d3a038115a39b1c283b46a574591e07 (patch) | |
tree | 3fb1c748d9b442286dbb3273ccae00492c85fe80 /src/mesa/drivers/dri/intel | |
parent | 507d43f95bc1623f413603e7f8c134553d11c184 (diff) |
[intel] warnings cleanup
Diffstat (limited to 'src/mesa/drivers/dri/intel')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_bufmgr_ttm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_bufmgr_ttm.c b/src/mesa/drivers/dri/intel/intel_bufmgr_ttm.c index ed683d19ae..e1eb9f34ae 100644 --- a/src/mesa/drivers/dri/intel/intel_bufmgr_ttm.c +++ b/src/mesa/drivers/dri/intel/intel_bufmgr_ttm.c @@ -304,7 +304,7 @@ intel_setup_reloc_list(dri_bo *bo) * at the last intel_free_validate_list(). */ if (bo_ttm->reloc_buf != NULL) - return; + return 0; bo_ttm->reloc_buf = malloc(sizeof(bo_ttm->drm_bo)); @@ -459,7 +459,6 @@ intel_ttm_bo_create_from_handle(dri_bufmgr *bufmgr, const char *name, static void dri_ttm_bo_reference(dri_bo *buf) { - dri_bufmgr_ttm *bufmgr_ttm = (dri_bufmgr_ttm *)buf->bufmgr; dri_bo_ttm *ttm_buf = (dri_bo_ttm *)buf; ttm_buf->refcount++; |