From 3239a17561c124df7095391c0d64e86910660cdc Mon Sep 17 00:00:00 2001 From: Jiafei Pan Date: Mon, 27 Sep 2021 11:47:11 +0800 Subject: [PATCH] fix(drivers/nxp/sfp): fix compile warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix compile warning that ‘mask’ may be used uninitialized. Signed-off-by: Jiafei Pan Change-Id: I75a443dbc36d7bd174fe317616fd95cd096306fc --- drivers/nxp/sfp/fuse_prov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nxp/sfp/fuse_prov.c b/drivers/nxp/sfp/fuse_prov.c index 4d30f5f28..165474fb8 100644 --- a/drivers/nxp/sfp/fuse_prov.c +++ b/drivers/nxp/sfp/fuse_prov.c @@ -326,7 +326,7 @@ static int prog_ospr1(struct fuse_hdr_t *fuse_hdr, struct sfp_ccsr_regs_t *sfp_ccsr_regs) { int ret; - uint32_t mask; + uint32_t mask = 0; #ifdef NXP_SFP_VER_3_4 if (((fuse_hdr->flags >> FLAG_MC_SHIFT) & 0x1) != 0) {