Commit 65315bbb authored by Fuqian Huang's avatar Fuqian Huang Committed by Jens Axboe

ata: pdc_adma: Remove call to memset after dmam_alloc_coherent

In commit af7ddd8a
("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: default avatarFuqian Huang <huangfq.daxian@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 602e40a7
...@@ -550,7 +550,6 @@ static int adma_port_start(struct ata_port *ap) ...@@ -550,7 +550,6 @@ static int adma_port_start(struct ata_port *ap)
(u32)pp->pkt_dma); (u32)pp->pkt_dma);
return -ENOMEM; return -ENOMEM;
} }
memset(pp->pkt, 0, ADMA_PKT_BYTES);
ap->private_data = pp; ap->private_data = pp;
adma_reinit_engine(ap); adma_reinit_engine(ap);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment