From: Sebastian Ott Date: Thu, 8 Sep 2016 11:37:09 +0000 (+0200) Subject: s390/pci_dma: remove memset from dma_alloc X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a95aeb2ff4a99dded0cfa4bec4ee61aaeb8b5109;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git s390/pci_dma: remove memset from dma_alloc Get rid of a useless memset from dma_alloc. Users of dma_alloc who want zero initialized memory can get it by specifying __GFP_ZERO or use one of the zalloc variants. Signed-off-by: Sebastian Ott Reviewed-by: Gerald Schaefer Signed-off-by: Martin Schwidefsky --- diff --git a/arch/s390/pci/pci_dma.c b/arch/s390/pci/pci_dma.c index 0c626c1303cb..54590207ae08 100644 --- a/arch/s390/pci/pci_dma.c +++ b/arch/s390/pci/pci_dma.c @@ -391,8 +391,6 @@ static void *s390_dma_alloc(struct device *dev, size_t size, return NULL; pa = page_to_phys(page); - memset((void *) pa, 0, size); - map = s390_dma_map_pages(dev, page, 0, size, DMA_BIDIRECTIONAL, 0); if (dma_mapping_error(dev, map)) { free_pages(pa, get_order(size));