From: Vinson Lee Date: Wed, 26 Jun 2013 03:55:40 +0000 (-0700) Subject: ilo: Remove max_threads dead code path. X-Git-Tag: mesa-9.2.1~623 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F55%2F7155%2F1;p=platform%2Fupstream%2Fmesa.git ilo: Remove max_threads dead code path. max_threads cannot be greater than 28. It is either 21 or 28. Fixes "Logically dead code" defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Chia-I Wu --- diff --git a/src/gallium/drivers/ilo/ilo_gpe_gen6.c b/src/gallium/drivers/ilo/ilo_gpe_gen6.c index 9c88b0a..4fb3507 100644 --- a/src/gallium/drivers/ilo/ilo_gpe_gen6.c +++ b/src/gallium/drivers/ilo/ilo_gpe_gen6.c @@ -1304,9 +1304,6 @@ ilo_gpe_init_gs_cso_gen6(const struct ilo_dev_info *dev, max_threads = 21; } - if (max_threads > 28) - max_threads = 28; - dw2 = GEN6_GS_SPF_MODE; dw4 = vue_read_len << GEN6_GS_URB_READ_LENGTH_SHIFT |