summaryrefslogtreecommitdiff
path: root/nuttx/arch
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-05-13 21:47:36 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-05-13 21:47:36 +0000
commit116ec488ee7d616e562aecbc236e63ef43a90c7c (patch)
treebfd1c53f660743124cc5890a490afa460a23a1f2 /nuttx/arch
parent50f7cb8fa46cae9496b95559e4f2b0874bfa77ac (diff)
downloadpx4-nuttx-116ec488ee7d616e562aecbc236e63ef43a90c7c.tar.gz
px4-nuttx-116ec488ee7d616e562aecbc236e63ef43a90c7c.tar.bz2
px4-nuttx-116ec488ee7d616e562aecbc236e63ef43a90c7c.zip
Initial mount integration
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@222 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch')
-rw-r--r--nuttx/arch/sim/src/up_blockdevice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/arch/sim/src/up_blockdevice.c b/nuttx/arch/sim/src/up_blockdevice.c
index 273cad950..0753561bc 100644
--- a/nuttx/arch/sim/src/up_blockdevice.c
+++ b/nuttx/arch/sim/src/up_blockdevice.c
@@ -129,7 +129,7 @@ static ssize_t up_read(FAR struct inode *inode, unsigned char *buffer,
memcpy(buffer,
&src[start_sector*LOGICAL_SECTOR_SIZE],
nsectors*LOGICAL_SECTOR_SIZE);
- return OK;
+ return nsectors;
}
}
return -EINVAL;
@@ -155,7 +155,7 @@ static ssize_t up_write(FAR struct inode *inode, const unsigned char *buffer,
memcpy(&dest[start_sector*LOGICAL_SECTOR_SIZE],
buffer,
nsectors*LOGICAL_SECTOR_SIZE);
- return OK;
+ return nsectors;
}
}
return -EINVAL;