Commit e16c5c90
was replacing 'region' with 'mt', leaving this
nonsensical code.
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
tags/10.6-branchpoint
@@ -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; |