i965: Don't bother freeing NULL.
authorMatt Turner <mattst88@gmail.com>
Sat, 11 Apr 2015 17:05:31 +0000 (10:05 -0700)
committerMatt 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

index c0a345293ee5ce46842e5f471c27544d9b6f65de..0424a879f7f022901b031ca4b887ca973a5d470c 100644 (file)
@@ -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;