diff options
author | Thomas Martitz <kugel@rockbox.org> | 2009-07-17 21:50:36 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2009-07-17 21:50:36 +0000 |
commit | fd17a8d637dd13ac8a9836d42b70d1e3eecd56f5 (patch) | |
tree | 0c85e37d88d0361278d13e85e779bf3b92ddc705 /firmware/target | |
parent | 8cba8447f864c766fce882cb6318bad3fa808c72 (diff) | |
download | rockbox-fd17a8d637dd13ac8a9836d42b70d1e3eecd56f5.tar.gz 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/target')
-rw-r--r-- | firmware/target/arm/as3525/ata_sd_as3525.c | 2 |
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, | |||
686 | bank_start -= bank * BLOCKS_PER_BANK; | 686 | bank_start -= bank * BLOCKS_PER_BANK; |
687 | 687 | ||
688 | /* Do not cross a bank boundary in a single transfer loop */ | 688 | /* Do not cross a bank boundary in a single transfer loop */ |
689 | if((transfer + bank_start) >= BLOCKS_PER_BANK) | 689 | if((transfer + bank_start) > BLOCKS_PER_BANK) |
690 | transfer = BLOCKS_PER_BANK - bank_start; | 690 | transfer = BLOCKS_PER_BANK - bank_start; |
691 | } | 691 | } |
692 | 692 | ||