summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorFuqian Huang <huangfq.daxian@gmail.com>2019-06-27 19:34:26 +0200
committerJens Axboe <axboe@kernel.dk>2019-06-29 17:42:23 +0200
commitb39f5da467188bdfdd17b5049cef54a4af27cd7f (patch)
treed0f0220e53404fbfac33638118fa2adb6ed43781 /drivers/ata
parentata: sata_nv: Remove call to memset after dmam_alloc_coherent (diff)
downloadlinux-b39f5da467188bdfdd17b5049cef54a4af27cd7f.tar.xz
linux-b39f5da467188bdfdd17b5049cef54a4af27cd7f.zip
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.c1
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);