diff options
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r-- | firmware/drivers/ata.c | 5 |
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) |