From 674b632df847753aaa974fff42f3e74f78043930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= Date: Mon, 28 Apr 2003 12:02:14 +0000 Subject: Corrected wrong write return code. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3623 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/ata.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'firmware/drivers') diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index 92332b580e..ec99bf799e 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c @@ -196,7 +196,6 @@ int ata_read_sectors(unsigned long start, timeout = current_tick + READ_TIMEOUT; - retry: ATA_SELECT = ata_device; if (!wait_for_rdy()) { @@ -205,6 +204,7 @@ int ata_read_sectors(unsigned long start, return -2; } + retry: buf = inbuf; count = incount; while (TIME_BEFORE(current_tick, timeout)) { @@ -363,10 +363,9 @@ int ata_write_sectors(unsigned long start, for (i=0; i