mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-15 16:12:28 -05:00
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
This commit is contained in:
parent
8cba8447f8
commit
fd17a8d637
1 changed files with 1 additions and 1 deletions
|
|
@ -686,7 +686,7 @@ static int sd_transfer_sectors(IF_MV2(int drive,) unsigned long start,
|
||||||
bank_start -= bank * BLOCKS_PER_BANK;
|
bank_start -= bank * BLOCKS_PER_BANK;
|
||||||
|
|
||||||
/* Do not cross a bank boundary in a single transfer loop */
|
/* 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;
|
transfer = BLOCKS_PER_BANK - bank_start;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue