diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2016-09-08 13:37:09 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-11-17 07:10:14 +0100 |
commit | a95aeb2ff4a99dded0cfa4bec4ee61aaeb8b5109 (patch) | |
tree | e82d81415a6a995a346573df7bc3a420682001d7 /arch/s390/pci/pci_dma.c | |
parent | s390/pci_dma: make lazy flush independent from the tlb_refresh bit (diff) | |
download | linux-a95aeb2ff4a99dded0cfa4bec4ee61aaeb8b5109.tar.xz linux-a95aeb2ff4a99dded0cfa4bec4ee61aaeb8b5109.zip |
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 <sebott@linux.vnet.ibm.com>
Reviewed-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/pci/pci_dma.c')
-rw-r--r-- | arch/s390/pci/pci_dma.c | 2 |
1 files changed, 0 insertions, 2 deletions
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)); |