summaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorSebastian Ott <sebott@linux.vnet.ibm.com>2016-09-08 13:37:09 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2016-11-17 07:10:14 +0100
commita95aeb2ff4a99dded0cfa4bec4ee61aaeb8b5109 (patch)
treee82d81415a6a995a346573df7bc3a420682001d7 /arch/s390
parent4f5359e94bbfbe349fd1ae00516dfe749d53fe22 (diff)
downloadop-kernel-dev-a95aeb2ff4a99dded0cfa4bec4ee61aaeb8b5109.zip
op-kernel-dev-a95aeb2ff4a99dded0cfa4bec4ee61aaeb8b5109.tar.gz
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')
-rw-r--r--arch/s390/pci/pci_dma.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/s390/pci/pci_dma.c b/arch/s390/pci/pci_dma.c
index 0c626c1..5459020 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));
OpenPOWER on IntegriCloud