usb: cdns3: delete repeated clear operations
dma_alloc_coherent already zeroes out memory, so memset is not needed. Signed-off-by: Wang Qing <wangqing@vivo.com> Reviewed-by: Pawel Laszczak <pawell@cadence.com> Acked-by: Pawel Laszczak <pawell@cadence.com> Signed-off-by: Peter Chen <peter.chen@kernel.org>
This commit is contained in:
parent
8430e98f2c
commit
8079ebf5ff
@ -1231,7 +1231,6 @@ int cdnsp_mem_init(struct cdnsp_device *pdev)
|
||||
if (!pdev->dcbaa)
|
||||
return -ENOMEM;
|
||||
|
||||
memset(pdev->dcbaa, 0, sizeof(*pdev->dcbaa));
|
||||
pdev->dcbaa->dma = dma;
|
||||
|
||||
cdnsp_write_64(dma, &pdev->op_regs->dcbaa_ptr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user