From: Vinson Lee Date: Wed, 27 May 2020 00:26:47 +0000 (-0700) Subject: pan/bi: Initialize struct fma_op_info member extended. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=df2c68ee4fd470efdc4f0121a2fe4aa5c64771e0;p=mesa.git pan/bi: Initialize struct fma_op_info member extended. Fix warning reported by Coverity Scan. Uninitialized scalar variable (UNINIT) uninit_use: Using uninitialized value info. Field info.extended is uninitialized. Fixes: 8c79c710d4e1 ("pan/bi: Identify extended FMA opcodes") Signed-off-by: Vinson Lee Reviewed-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/panfrost/bifrost/disassemble.c b/src/panfrost/bifrost/disassemble.c index e5f23eb0a6f..b9ca762c90b 100644 --- a/src/panfrost/bifrost/disassemble.c +++ b/src/panfrost/bifrost/disassemble.c @@ -613,6 +613,7 @@ static struct fma_op_info find_fma_op_info(unsigned op, bool extended) struct fma_op_info info; snprintf(info.name, sizeof(info.name), "op%04x", op); + info.extended = extended; info.op = op; info.src_type = FMA_THREE_SRC; return info;