summaryrefslogtreecommitdiff
path: root/firmware/drivers/ata.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-10-08 19:20:20 +0000
committerJens Arnold <amiconn@rockbox.org>2004-10-08 19:20:20 +0000
commit8eedc94018ad380304b7fa3de8aecc504bda543c (patch)
treef623752b0df44286fdd0ff85dad135da79c60393 /firmware/drivers/ata.c
parent78ebf586275ddcdfcb23574932bc2b3e1f67ffb1 (diff)
downloadrockbox-8eedc94018ad380304b7fa3de8aecc504bda543c.tar.gz
rockbox-8eedc94018ad380304b7fa3de8aecc504bda543c.zip
Fixed warning when compiling with PREFER_C_WRITING
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5229 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r--firmware/drivers/ata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index ce136a4f96..60b6a87488 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -470,7 +470,7 @@ static void copy_write_sectors(const unsigned char* buf, int wordcount)
470 if ( (unsigned int)buf & 1) 470 if ( (unsigned int)buf & 1)
471 { /* not 16-bit aligned, copy byte by byte */ 471 { /* not 16-bit aligned, copy byte by byte */
472 unsigned short tmp = 0; 472 unsigned short tmp = 0;
473 unsigned char* bufend = buf + wordcount*2; 473 const unsigned char* bufend = buf + wordcount*2;
474 do 474 do
475 { /* loop compiles to 9 assembler instructions */ 475 { /* loop compiles to 9 assembler instructions */
476 /* takes 13 clock cycles (2 pipeline stalls) */ 476 /* takes 13 clock cycles (2 pipeline stalls) */