summaryrefslogtreecommitdiff
path: root/firmware
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
parent2207764d91122fe856d3d03467a8b08463f972cf (diff)
downloadrockbox-f9fed8152aa63e09a750919c9b3692c62ab06d18.tar.gz
rockbox-f9fed8152aa63e09a750919c9b3692c62ab06d18.zip
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')
-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,
288 void* buf) 288 void* buf)
289{ 289{
290 int i; 290 int i;
291 int ret = 0;
291 292
292 last_disk_activity = current_tick; 293 last_disk_activity = current_tick;
293 294
@@ -347,7 +348,7 @@ int ata_write_sectors(unsigned long start,
347 } 348 }
348 349
349 if(!wait_for_end_of_transfer()) 350 if(!wait_for_end_of_transfer())
350 i = -3; 351 ret = -3;
351 352
352 led(false); 353 led(false);
353 354
@@ -358,7 +359,7 @@ int ata_write_sectors(unsigned long start,
358 359
359 last_disk_activity = current_tick; 360 last_disk_activity = current_tick;
360 361
361 return i; 362 return ret;
362} 363}
363 364
364extern void ata_delayed_write(unsigned long sector, void* buf) 365extern void ata_delayed_write(unsigned long sector, void* buf)