summaryrefslogtreecommitdiff
path: root/firmware/drivers/ata.c
diff options
context:
space:
mode:
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,
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)