diff mbox series

[3/3] crypto: octeontx2: Avoid some useless memory initialization

Message ID d23bb174321f48dbc4ca2d325a57c616a2fafb8b.1657455515.git.christophe.jaillet@wanadoo.fr (mailing list archive)
State Changes Requested
Delegated to: Herbert Xu
Headers show
Series [1/3] crypto: octeontx2: Simplify bitmap declaration | expand

Commit Message

Christophe JAILLET July 10, 2022, 12:19 p.m. UTC
In otx2_cpt_eng_grp_info(), 'tmp_bmap' is zero'ed at each iteration in the
first 'for' loop.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
 drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c b/drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
index a28a310090e9..b14a8f6dae63 100644
--- a/drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
+++ b/drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
@@ -848,7 +848,7 @@  static int eng_grp_update_masks(struct device *dev,
 				struct otx2_cpt_eng_grp_info *eng_grp)
 {
 	struct otx2_cpt_engs_rsvd *engs, *mirrored_engs;
-	struct otx2_cpt_bitmap tmp_bmap = { {0} };
+	struct otx2_cpt_bitmap tmp_bmap;
 	int i, j, cnt, max_cnt;
 	int bit;