From: Fuqian Huang Date: Thu, 27 Jun 2019 17:34:10 +0000 (+0800) Subject: ata: pdc_adma: Remove call to memset after dmam_alloc_coherent X-Git-Tag: v5.3-rc1~163^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=65315bbbfd9fdb7863c0bfea5011b400e67bc38b;p=thirdparty%2Flinux.git ata: pdc_adma: Remove call to memset after dmam_alloc_coherent In commit af7ddd8a627c ("Merge tag 'dma-mapping-4.21' of git://git.infradead.org/users/hch/dma-mapping"), dmam_alloc_coherent has already zeroed the memory. So memset is not needed. Signed-off-by: Fuqian Huang Signed-off-by: Jens Axboe --- diff --git a/drivers/ata/pdc_adma.c b/drivers/ata/pdc_adma.c index 52fa8606a25fe..c5bbb07aa7d9d 100644 --- a/drivers/ata/pdc_adma.c +++ b/drivers/ata/pdc_adma.c @@ -550,7 +550,6 @@ static int adma_port_start(struct ata_port *ap) (u32)pp->pkt_dma); return -ENOMEM; } - memset(pp->pkt, 0, ADMA_PKT_BYTES); ap->private_data = pp; adma_reinit_engine(ap); return 0;