diff options
author | Brian Paul <brianp@vmware.com> | 2010-12-09 16:02:12 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-12-09 18:40:48 -0700 |
commit | bd995cf6c053075833b53fae29773b15d948462e (patch) | |
tree | 948ca9405b1db2bd7c68c7863053ea7faca7cd85 | |
parent | 0e50c21e247b6d4246fcc2b583563a8f44bc4249 (diff) |
draw/llvm: remove extraneous conditional
-rw-r--r-- | src/gallium/auxiliary/draw/draw_llvm.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c index 3b8286f05d..943ec44bcd 100644 --- a/src/gallium/auxiliary/draw/draw_llvm.c +++ b/src/gallium/auxiliary/draw/draw_llvm.c @@ -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); } |