summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2015-04-11 10:05:31 -0700
committerMatt Turner <[email protected]>2015-04-13 09:03:02 -0700
commit1c9db39d54508608ea9518bc82eacbd8e27c410c (patch)
treee2bfbced32355fd194b4495c11fb0c5b162a6525 /src/mesa/drivers
parenta76dc15b2b37db18151b42be63b49438588a92fe (diff)
i965: Don't bother freeing NULL.
Commit e16c5c90 was replacing 'region' with 'mt', leaving this nonsensical code. Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/intel_mipmap_tree.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index c0a345293ee..0424a879f7f 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -749,10 +749,8 @@ intel_miptree_create_for_bo(struct brw_context *brw,
width, height, depth,
true, 0, false,
disable_aux_buffers);
- if (!mt) {
- free(mt);
- return mt;
- }
+ if (!mt)
+ return NULL;
drm_intel_bo_reference(bo);
mt->bo = bo;