summaryrefslogtreecommitdiff
path: root/firmware/drivers/ata.c
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-11-07 22:40:24 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-11-07 22:40:24 +0000
commitf9fed8152aa63e09a750919c9b3692c62ab06d18 (patch)
tree7746c125ee6608e7f460626f4a02e16c22621a6d /firmware/drivers/ata.c
parent2207764d91122fe856d3d03467a8b08463f972cf (diff)
Changed return code of ata_write_sectors() to be the same as for ata_read_sectors(). (0 == Success)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2811 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r--firmware/drivers/ata.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index 11ce50bc1f..7e1d2421d3 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -288,6 +288,7 @@ int ata_write_sectors(unsigned long start,
void* buf)
{
int i;
+ int ret = 0;
last_disk_activity = current_tick;
@@ -347,7 +348,7 @@ int ata_write_sectors(unsigned long start,
}
if(!wait_for_end_of_transfer())
- i = -3;
+ ret = -3;
led(false);
@@ -358,7 +359,7 @@ int ata_write_sectors(unsigned long start,
last_disk_activity = current_tick;
- return i;
+ return ret;
}
extern void ata_delayed_write(unsigned long sector, void* buf)