In cpt_detach_and_disable_cores(), 'bmap' is initialized just a few lines below, so there is no need to initialize it when it is declared. In eng_grp_update_masks(), 'tmp_bmap' is zero'ed at each iteration in the first 'for' loop. Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx> --- drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c b/drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c index 407e1a3ae841..45d1c9902cf5 100644 --- a/drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c +++ b/drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c @@ -204,7 +204,7 @@ static int cpt_detach_and_disable_cores(struct otx_cpt_eng_grp_info *eng_grp, void *obj) { struct otx_cpt_device *cpt = (struct otx_cpt_device *) obj; - struct otx_cpt_bitmap bmap = { {0} }; + struct otx_cpt_bitmap bmap; int timeout = 10; int i, busy; u64 reg; @@ -1056,7 +1056,7 @@ static int eng_grp_update_masks(struct device *dev, struct otx_cpt_eng_grp_info *eng_grp) { struct otx_cpt_engs_rsvd *engs, *mirrored_engs; - struct otx_cpt_bitmap tmp_bmap = { {0} }; + struct otx_cpt_bitmap tmp_bmap; int i, j, cnt, max_cnt; int bit; -- 2.34.1