mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-18 18:23:53 +08:00
ata:sata_qstor: Remove call to memset after dmam_alloc_coherent
In commit af7ddd8a62
("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 <huangfq.daxian@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
523e099b69
commit
b39f5da467
@ -477,7 +477,6 @@ static int qs_port_start(struct ata_port *ap)
|
||||
GFP_KERNEL);
|
||||
if (!pp->pkt)
|
||||
return -ENOMEM;
|
||||
memset(pp->pkt, 0, QS_PKT_BYTES);
|
||||
ap->private_data = pp;
|
||||
|
||||
qs_enter_reg_mode(ap);
|
||||
|
Loading…
Reference in New Issue
Block a user