draw/llvm: remove extraneous conditional
authorBrian Paul <brianp@vmware.com>
Thu, 9 Dec 2010 23:02:12 +0000 (16:02 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 10 Dec 2010 01:40:48 +0000 (18:40 -0700)
src/gallium/auxiliary/draw/draw_llvm.c

index 3b8286f05d5d9962bbd34f4b5f47bed97d054c35..943ec44bcde47296b725b546d4673bcbca6849a9 100644 (file)
@@ -1610,16 +1610,14 @@ draw_llvm_destroy_variant(struct draw_llvm_variant *variant)
    struct draw_llvm *llvm = variant->llvm;
 
    if (variant->function_elts) {
-      if (variant->function_elts)
-         LLVMFreeMachineCodeForFunction(llvm->gallivm->engine,
-                                        variant->function_elts);
+      LLVMFreeMachineCodeForFunction(llvm->gallivm->engine,
+                                     variant->function_elts);
       LLVMDeleteFunction(variant->function_elts);
    }
 
    if (variant->function) {
-      if (variant->function)
-         LLVMFreeMachineCodeForFunction(llvm->gallivm->engine,
-                                        variant->function);
+      LLVMFreeMachineCodeForFunction(llvm->gallivm->engine,
+                                     variant->function);
       LLVMDeleteFunction(variant->function);
    }