diff options
author | Vinson Lee <[email protected]> | 2013-07-21 00:04:36 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2013-07-24 23:47:34 -0700 |
commit | 0ac316470813b4f2e825ff4befbbf2135cccce94 (patch) | |
tree | 82683f0886bca8a664e872e5625243e2d6577ed7 /src/gallium/auxiliary/gallivm | |
parent | 8a9df7a370b66ec50b6255e4d66ac1ed331319fb (diff) |
gallivm: Remove dead code in lp_build_compare_ext.
There are earlier returns for PIPE_FUNC_NEVER and PIPE_FUNC_ALWAYS. The
switch value of 'func' cannot be either of those values.
Fixes "Logically dead code" defects reported by Coverity.
Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/gallivm')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_logic.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_logic.c b/src/gallium/auxiliary/gallivm/lp_bld_logic.c index 322d385db6c..fc7a7289707 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_logic.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_logic.c @@ -100,12 +100,6 @@ lp_build_compare_ext(struct gallivm_state *gallivm, if(type.floating) { LLVMRealPredicate op; switch(func) { - case PIPE_FUNC_NEVER: - op = LLVMRealPredicateFalse; - break; - case PIPE_FUNC_ALWAYS: - op = LLVMRealPredicateTrue; - break; case PIPE_FUNC_EQUAL: op = ordered ? LLVMRealOEQ : LLVMRealUEQ; break; |