summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-07-17 21:50:36 +0000
committerThomas Martitz <kugel@rockbox.org>2009-07-17 21:50:36 +0000
commitfd17a8d637dd13ac8a9836d42b70d1e3eecd56f5 (patch)
tree0c85e37d88d0361278d13e85e779bf3b92ddc705 /firmware
parent8cba8447f864c766fce882cb6318bad3fa808c72 (diff)
downloadrockbox-fd17a8d637dd13ac8a9836d42b70d1e3eecd56f5.tar.gz
rockbox-fd17a8d637dd13ac8a9836d42b70d1e3eecd56f5.tar.bz2
rockbox-fd17a8d637dd13ac8a9836d42b70d1e3eecd56f5.zip
Apply the same fix as r21930 did for the ramdisk for the AMS Sansa driver.
Nothing should change, since the value of transfer didn't change in the == case, but it saves executing this case at least. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21931 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/as3525/ata_sd_as3525.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/ata_sd_as3525.c b/firmware/target/arm/as3525/ata_sd_as3525.c
index 802a649992..8a18a70826 100644
--- a/firmware/target/arm/as3525/ata_sd_as3525.c
+++ b/firmware/target/arm/as3525/ata_sd_as3525.c
@@ -686,7 +686,7 @@ static int sd_transfer_sectors(IF_MV2(int drive,) unsigned long start,
bank_start -= bank * BLOCKS_PER_BANK;
/* Do not cross a bank boundary in a single transfer loop */
- if((transfer + bank_start) >= BLOCKS_PER_BANK)
+ if((transfer + bank_start) > BLOCKS_PER_BANK)
transfer = BLOCKS_PER_BANK - bank_start;
}