summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-05-27 11:14:57 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2019-05-28 10:38:22 +0200
commit64f137cae2bfbab2cad3caaf007b66b003b55881 (patch)
tree8b6564dbce41a33db4ee39efd1935f88afcf304d /drivers/ata
parent8b93252a30c00b6df7b96ff5305760c53d20ca18 (diff)
downloadbarebox-64f137cae2bfbab2cad3caaf007b66b003b55881.tar.gz
barebox-64f137cae2bfbab2cad3caaf007b66b003b55881.tar.xz
ahci: Do not zero out DMA coherent memory
Memory returned by dma_alloc_coherent() should already be zeroed out, so there's no need to do this explicitly. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/ahci.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index e6723a337c..7dc09d00c6 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -342,10 +342,6 @@ static int ahci_init_port(struct ahci_port *ahci_port)
goto err_alloc2;
}
- memset(ahci_port->cmd_slot, 0, AHCI_CMD_SLOT_SZ * 32);
- memset((void *)ahci_port->rx_fis, 0, AHCI_RX_FIS_SZ);
- memset(ahci_port->cmd_tbl, 0, AHCI_CMD_TBL_SZ);
-
ahci_port_debug(ahci_port, "cmd_tbl_dma = 0x%p\n", ahci_port->cmd_tbl);
ahci_port->cmd_tbl_sg = ahci_port->cmd_tbl + AHCI_CMD_TBL_HDR_SZ;