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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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




[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux