diff mbox series

[v2] crypto: hisilicon/qm - delete redundant code

Message ID 1617362550-23630-1-git-send-email-yekai13@huawei.com
State Accepted
Commit 556b64b9f39e678e64bd69fa180098e5174f3104
Headers show
Series [v2] crypto: hisilicon/qm - delete redundant code | expand

Commit Message

yekai (A) April 2, 2021, 11:22 a.m. UTC
The "qdma" is a structure variable instead of actual data. This
structure doesn't need to be zerod, The memset is useless and redundant.
So delete it.

Signed-off-by: Kai Ye <yekai13@huawei.com>
---
Changes v1 -> v2:
 Re-edit the description.

 drivers/crypto/hisilicon/qm.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Herbert Xu April 9, 2021, 7:55 a.m. UTC | #1
On Fri, Apr 02, 2021 at 07:22:30PM +0800, Kai Ye wrote:
> The "qdma" is a structure variable instead of actual data. This

> structure doesn't need to be zerod, The memset is useless and redundant.

> So delete it.

> 

> Signed-off-by: Kai Ye <yekai13@huawei.com>

> ---

> Changes v1 -> v2:

>  Re-edit the description.

> 

>  drivers/crypto/hisilicon/qm.c | 1 -

>  1 file changed, 1 deletion(-)


Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
diff mbox series

Patch

diff --git a/drivers/crypto/hisilicon/qm.c b/drivers/crypto/hisilicon/qm.c
index 13cb421..88a6c6f 100644
--- a/drivers/crypto/hisilicon/qm.c
+++ b/drivers/crypto/hisilicon/qm.c
@@ -2527,7 +2527,6 @@  void hisi_qm_uninit(struct hisi_qm *qm)
 		hisi_qm_cache_wb(qm);
 		dma_free_coherent(dev, qm->qdma.size,
 				  qm->qdma.va, qm->qdma.dma);
-		memset(&qm->qdma, 0, sizeof(qm->qdma));
 	}
 
 	qm_irq_unregister(qm);