diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2019-02-19 23:29:07 -0800 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-02-22 08:11:18 +0100 |
commit | fa42474239d7bf5370aac3672cfb6b6b37d7f2dc (patch) | |
tree | 2953cd612a570adcec9d25d70fe02d7b00154256 /drivers | |
parent | 181479dd8a64138dc1a35f3bf0b940b9501ffb4e (diff) | |
download | barebox-fa42474239d7bf5370aac3672cfb6b6b37d7f2dc.tar.gz barebox-fa42474239d7bf5370aac3672cfb6b6b37d7f2dc.tar.xz |
usb: xhci-hcd: Do not zero out DMA coherent memory
Memory returned by dma_alloc_coherent() should already be zeroed
out, so there's no need to do this explicitly.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/host/xhci-hcd.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci-hcd.c b/drivers/usb/host/xhci-hcd.c index 7cfd74de41..7106a56371 100644 --- a/drivers/usb/host/xhci-hcd.c +++ b/drivers/usb/host/xhci-hcd.c @@ -445,7 +445,6 @@ static struct xhci_virtual_device *xhci_alloc_virtdev(struct xhci_hcd *xhci, vdev->dma_size = sz_ictx + sz_dctx; p = vdev->dma = dma_alloc_coherent(vdev->dma_size, DMA_ADDRESS_BROKEN); - memset(vdev->dma, 0, vdev->dma_size); vdev->out_ctx = p; p += sz_dctx; vdev->in_ctx = p; p += sz_ictx; @@ -1225,7 +1224,6 @@ static void xhci_dma_alloc(struct xhci_hcd *xhci) xhci->dma_size += num_ep * sz_ep; p = xhci->dma = dma_alloc_coherent(xhci->dma_size, DMA_ADDRESS_BROKEN); - memset(xhci->dma, 0, xhci->dma_size); xhci->sp = p; p += sz_sp; xhci->dcbaa = p; p += sz_dca; |