In commit af7ddd8a627c ("Merge tag 'dma-mapping-4.21' of git://git.infradead.org/users/hch/dma-mapping"), dma_alloc_coherent has already zeroed the memory. So memset is not needed. Signed-off-by: Fuqian Huang <huangfq.daxian@xxxxxxxxx> --- drivers/scsi/esas2r/esas2r_init.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/esas2r/esas2r_init.c b/drivers/scsi/esas2r/esas2r_init.c index 950cd92df2ff..67e7a78f408b 100644 --- a/drivers/scsi/esas2r/esas2r_init.c +++ b/drivers/scsi/esas2r/esas2r_init.c @@ -390,7 +390,6 @@ int esas2r_init_adapter(struct Scsi_Host *host, struct pci_dev *pcid, a->uncached, upper_32_bits(bus_addr), lower_32_bits(bus_addr)); - memset(a->uncached, 0, a->uncached_size); next_uncached = a->uncached; if (!esas2r_init_adapter_struct(a, -- 2.11.0