Module: Mesa Branch: master Commit: 98b8ad61c6bc531646bec1e773b0f57f99e47159 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=98b8ad61c6bc531646bec1e773b0f57f99e47159
Author: Axel Davy <axel.d...@ens.fr> Date: Wed Oct 12 18:58:24 2016 +0200 st/nine: Remove useless code in nine_shader Since 1604efa6fda9b780e8537a131ad77f3e83e5a67a, lconsti and lconstb don't need to be initialized. Remove some leftovers from the previous code (which has now invalid use of ARRAY_SIZE on a pointer instead of an array). Reported by Coverity. Signed-off-by: Axel Davy <axel.d...@ens.fr> --- src/gallium/state_trackers/nine/nine_shader.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c index 0f8bcdd..ab21daf 100644 --- a/src/gallium/state_trackers/nine/nine_shader.c +++ b/src/gallium/state_trackers/nine/nine_shader.c @@ -3361,11 +3361,6 @@ tx_ctor(struct shader_translator *tx, struct nine_shader_info *info) for (i = 0; i < ARRAY_SIZE(tx->regs.vT); ++i) tx->regs.vT[i] = ureg_src_undef(); - for (i = 0; i < ARRAY_SIZE(tx->lconsti); ++i) - tx->lconsti[i].idx = -1; - for (i = 0; i < ARRAY_SIZE(tx->lconstb); ++i) - tx->lconstb[i].idx = -1; - sm1_read_version(tx); info->version = (tx->version.major << 4) | tx->version.minor; _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit