Commit e675697e authored by Fuqian Huang's avatar Fuqian Huang Committed by Jens Axboe

ata: sata_sil24: 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 b39f5da4
...@@ -1202,7 +1202,6 @@ static int sil24_port_start(struct ata_port *ap) ...@@ -1202,7 +1202,6 @@ static int sil24_port_start(struct ata_port *ap)
cb = dmam_alloc_coherent(dev, cb_size, &cb_dma, GFP_KERNEL); cb = dmam_alloc_coherent(dev, cb_size, &cb_dma, GFP_KERNEL);
if (!cb) if (!cb)
return -ENOMEM; return -ENOMEM;
memset(cb, 0, cb_size);
pp->cmd_block = cb; pp->cmd_block = cb;
pp->cmd_block_dma = cb_dma; pp->cmd_block_dma = cb_dma;
......
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