mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 01:22:07 +00:00
crypto: hisilicon/qm - delete redundant code
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> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
ae6ce7b17e
commit
556b64b9f3
@ -2620,7 +2620,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);
|
||||
|
Loading…
Reference in New Issue
Block a user