[PATCH 14/16] ata: ahci: remove redundant cast in ahci_io()

Denis Orlov denorl2009 at gmail.com
Wed May 4 02:25:51 PDT 2022


Signed-off-by: Denis Orlov <denorl2009 at gmail.com>
---
 drivers/ata/ahci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index 2d5adcfca9..f9056ff418 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -171,7 +171,7 @@ static int ahci_io(struct ahci_port *ahci_port, u8 *fis, int fis_len, void *rbuf
 
 	buf_dma = dma_map_single(ahci_port->ahci->dev, buf, buf_len, dma_dir);
 
-	memcpy((unsigned char *)ahci_port->cmd_tbl, fis, fis_len);
+	memcpy(ahci_port->cmd_tbl, fis, fis_len);
 
 	sg_count = ahci_fill_sg(ahci_port, buf_dma, buf_len);
 	opts = (fis_len >> 2) | (sg_count << 16);
-- 
2.20.1




More information about the barebox mailing list