gallivm: Remove dead code in lp_build_compare_ext.
authorVinson Lee <vlee@freedesktop.org>
Sun, 21 Jul 2013 07:04:36 +0000 (00:04 -0700)
committerVinson Lee <vlee@freedesktop.org>
Thu, 25 Jul 2013 06:47:34 +0000 (23:47 -0700)
commit0ac316470813b4f2e825ff4befbbf2135cccce94
tree82683f0886bca8a664e872e5625243e2d6577ed7
parent8a9df7a370b66ec50b6255e4d66ac1ed331319fb
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 <vlee@freedesktop.org>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_logic.c