From: Christophe JAILLET Date: Mon, 27 Jul 2020 13:51:51 +0000 (+0200) Subject: media: bt8xx: avoid a useless memset X-Git-Tag: v5.11-rc1~203^2~203 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c79464f30e18dd02a66333d60c437c1fa98ee28f;p=thirdparty%2Fkernel%2Flinux.git media: bt8xx: avoid a useless memset Avoid a memset after a call to 'dma_alloc_coherent()'. This is useless since commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*") Signed-off-by: Christophe JAILLET Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/pci/bt8xx/btcx-risc.c b/drivers/media/pci/bt8xx/btcx-risc.c index 13bb1490a5683..b3179038b900d 100644 --- a/drivers/media/pci/bt8xx/btcx-risc.c +++ b/drivers/media/pci/bt8xx/btcx-risc.c @@ -73,7 +73,6 @@ int btcx_riscmem_alloc(struct pci_dev *pci, dprintk("btcx: riscmem alloc [%d] dma=%lx cpu=%p size=%d\n", memcnt, (unsigned long)dma, cpu, size); } - memset(risc->cpu,0,risc->size); return 0; }