[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <d23bb174321f48dbc4ca2d325a57c616a2fafb8b.1657455515.git.christophe.jaillet@wanadoo.fr>
Date: Sun, 10 Jul 2022 14:19:33 +0200
From: Christophe JAILLET <christophe.jaillet@...adoo.fr>
To: Boris Brezillon <bbrezillon@...nel.org>,
Arnaud Ebalard <arno@...isbad.org>,
Srujana Challa <schalla@...vell.com>,
Herbert Xu <herbert@...dor.apana.org.au>,
"David S. Miller" <davem@...emloft.net>
Cc: linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org,
Christophe JAILLET <christophe.jaillet@...adoo.fr>,
linux-crypto@...r.kernel.org
Subject: [PATCH 3/3] crypto: octeontx2: Avoid some useless memory initialization
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@...adoo.fr>
---
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
2.34.1
Powered by blists - more mailing lists