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@xxxxxxxxx> --- drivers/usb/host/ohci-hcd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index 612c3a103..924dc8e1f 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); -- 2.21.0 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox