OSDN Git Service

media: ngene: Remove call to memset after pci_alloc_consistent
authorFuqian Huang <huangfq.daxian@gmail.com>
Mon, 15 Jul 2019 03:18:44 +0000 (00:18 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 13 Aug 2019 14:54:39 +0000 (11:54 -0300)
commit6a11f0f588865f7f8bf2841d9a904c01158ada59
treeec9ede901da4c56b9dc9c449bf8992ac87843b8e
parente671499303e4c0e4bee073889de8b90261ad5abb
media: ngene: Remove call to memset after pci_alloc_consistent

pci_alloc_consistent calls dma_alloc_coherent directly.
In commit 518a2f1925c3
("dma-mapping: zero memory returned from dma_alloc_*"),
dma_alloc_coherent has already zeroed the memory.
So memset is not needed.

Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/pci/ngene/ngene-core.c