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
This commit is contained in:
Björn Stenberg 2002-11-07 22:40:24 +00:00
parent 2207764d91
commit f9fed8152a

View file

@ -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)