From: Alyssa Rosenzweig Date: Mon, 3 Feb 2020 19:35:32 +0000 (-0500) Subject: pan/midgard: Remove unused variable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9cdd89a34b89973fbe646de5976f190ec7bd8d1c;p=mesa.git pan/midgard: Remove unused variable ../src/panfrost/midgard/mir.c: In function ‘mir_bytemask_of_read_components_index’: ../src/panfrost/midgard/mir.c:471:18: warning: unused variable ‘mask’ [-Wunused-variable] 471 | uint16_t mask = 0; Signed-off-by: Alyssa Rosenzweig Reviewed-by: Tomeu Vizoso Tested-by: Marge Bot Part-of: --- diff --git a/src/panfrost/midgard/mir.c b/src/panfrost/midgard/mir.c index c3f1eaafb00..5241c6334b2 100644 --- a/src/panfrost/midgard/mir.c +++ b/src/panfrost/midgard/mir.c @@ -468,8 +468,6 @@ mir_bytemask_of_read_components_single(unsigned *swizzle, unsigned inmask, midga uint16_t mir_bytemask_of_read_components_index(midgard_instruction *ins, unsigned i) { - uint16_t mask = 0; - /* Branch writeout uses all components */ if (ins->compact_branch && ins->writeout && (i == 0)) return 0xFFFF;