diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2019-05-27 11:14:53 -0700 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-05-28 10:38:22 +0200 |
commit | 8aabae9e4a0fb80e11f747af1c1199814ce805b1 (patch) | |
tree | 86362482d84cb6fbe59a12bdbcaa64d584bc71df | |
parent | 649b9ebcf53d697277bcdb01334dbcd563a33aa8 (diff) | |
download | barebox-8aabae9e4a0fb80e11f747af1c1199814ce805b1.tar.gz barebox-8aabae9e4a0fb80e11f747af1c1199814ce805b1.tar.xz |
usb: ohci-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>
-rw-r--r-- | drivers/usb/host/ohci-hcd.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index 612c3a1033..924dc8e1f6 100644 --- a/drivers/usb/host/ohci-hcd.c +++ b/drivers/usb/host/ohci-hcd.c @@ -1765,7 +1765,6 @@ static int ohci_init(struct usb_host *host) DMA_ADDRESS_BROKEN); if (!ohci->ptd) return -ENOMEM; - memset(ohci->ptd, 0, sizeof(struct td) * NUM_TD); ohci->disabled = 1; ohci->irq = -1; @@ -1815,7 +1814,6 @@ static int ohci_probe(struct device_d *dev) DMA_ADDRESS_BROKEN); if (!ohci->ohci_dev) return -ENOMEM; - memset(ohci->ohci_dev, 0, sizeof(*ohci->ohci_dev)); usb_register_host(host); |