diff options
author | Fuqian Huang <huangfq.daxian@gmail.com> | 2019-06-27 20:34:26 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-06-29 18:42:23 +0300 |
commit | b39f5da467188bdfdd17b5049cef54a4af27cd7f (patch) | |
tree | d0f0220e53404fbfac33638118fa2adb6ed43781 /drivers/ata | |
parent | 523e099b69551961dc3f3070a960338328ac0774 (diff) | |
download | linux-b39f5da467188bdfdd17b5049cef54a4af27cd7f.tar.xz |
ata:sata_qstor: 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 <huangfq.daxian@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/sata_qstor.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/ata/sata_qstor.c b/drivers/ata/sata_qstor.c index 7ec0c216a6a6..865e5c58bd94 100644 --- a/drivers/ata/sata_qstor.c +++ b/drivers/ata/sata_qstor.c @@ -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); |