summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-05-22 00:33:57 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2019-05-23 09:45:49 +0200
commit278f77fe175a71060ff480185ab39f0ac65a83c7 (patch)
treeeeabbc6308bcebda334449362ebd626602e1070f /drivers/usb
parent3da7b102b17e8ba1311749cbd2fb0be1c62bb615 (diff)
downloadbarebox-278f77fe175a71060ff480185ab39f0ac65a83c7.tar.gz
barebox-278f77fe175a71060ff480185ab39f0ac65a83c7.tar.xz
usb: host: ehci: 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/usb')
-rw-r--r--drivers/usb/host/ehci-hcd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index 87af95d2ed..54ab328305 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -1069,8 +1069,6 @@ static struct int_queue *ehci_create_int_queue(struct usb_device *dev,
result->last = result->first + queuesize - 1;
result->tds = dma_alloc_coherent(sizeof(struct qTD) * queuesize,
DMA_ADDRESS_BROKEN);
- memset(result->first, 0, sizeof(struct QH) * queuesize);
- memset(result->tds, 0, sizeof(struct qTD) * queuesize);
for (i = 0; i < queuesize; i++) {
struct QH *qh = result->first + i;