media: bt8xx: avoid a useless memset
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 27 Jul 2020 13:51:51 +0000 (15:51 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 27 Nov 2020 13:09:34 +0000 (14:09 +0100)
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 <christophe.jaillet@wanadoo.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/pci/bt8xx/btcx-risc.c

index 13bb149..b317903 100644 (file)
@@ -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;
 }