diff mbox series

[3/3] crypto: marvell/octeontx: Avoid some useless memory initialization

Message ID 4bf1a510b8c21297ac3261c2b291b1833dc7ac5c.1657455082.git.christophe.jaillet@wanadoo.fr
State New
Headers show
Series [1/3] crypto: marvell/octeontx: Simplify bitmap declaration | expand

Commit Message

Christophe JAILLET July 10, 2022, 12:13 p.m. UTC
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@wanadoo.fr>
---
 drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

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;