summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2009-07-17 21:02:44 +0000
committerFrank Gevaerts <frank@gevaerts.be>2009-07-17 21:02:44 +0000
commit8cba8447f864c766fce882cb6318bad3fa808c72 (patch)
tree08329f7b5cfb161377f1d151f4cfb21b6bfd0cfc /firmware
parenta0d630f3deeac93656e4f38b3bab6069b8817238 (diff)
downloadrockbox-8cba8447f864c766fce882cb6318bad3fa808c72.tar.gz
rockbox-8cba8447f864c766fce882cb6318bad3fa808c72.tar.bz2
rockbox-8cba8447f864c766fce882cb6318bad3fa808c72.zip
Allow access to the last sector of the ramdisk as well
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21930 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/ramdisk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/ramdisk.c b/firmware/drivers/ramdisk.c
index c16c4fb675..0ea4012ef1 100644
--- a/firmware/drivers/ramdisk.c
+++ b/firmware/drivers/ramdisk.c
@@ -36,7 +36,7 @@ int ramdisk_read_sectors(IF_MV2(int drive,)
int count,
void* buf)
{
- if(start+count>=NUM_SECTORS)
+ if(start+count>NUM_SECTORS)
{
return -1;
}
@@ -49,7 +49,7 @@ int ramdisk_write_sectors(IF_MV2(int drive,)
int count,
const void* buf)
{
- if(start+count>=NUM_SECTORS)
+ if(start+count>NUM_SECTORS)
{
return -1;
}