diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2019-05-22 00:33:57 -0700 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-05-23 09:45:49 +0200 |
commit | 278f77fe175a71060ff480185ab39f0ac65a83c7 (patch) | |
tree | eeabbc6308bcebda334449362ebd626602e1070f | |
parent | 3da7b102b17e8ba1311749cbd2fb0be1c62bb615 (diff) | |
download | barebox-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>
-rw-r--r-- | drivers/usb/host/ehci-hcd.c | 2 |
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; |