projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a76dc15
)
i965: Don't bother freeing NULL.
author
Matt Turner
<mattst88@gmail.com>
Sat, 11 Apr 2015 17:05:31 +0000
(10:05 -0700)
committer
Matt Turner
<mattst88@gmail.com>
Mon, 13 Apr 2015 16:03:02 +0000
(09:03 -0700)
Commit
e16c5c90
was replacing 'region' with 'mt', leaving this
nonsensical code.
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index c0a345293ee5ce46842e5f471c27544d9b6f65de..0424a879f7f022901b031ca4b887ca973a5d470c 100644
(file)
--- 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;