summaryrefslogtreecommitdiff
path: root/nuttx/drivers/bch/bchlib_write.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-05-02 08:07:42 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-05-02 08:07:42 -0600
commitbb95a53a6ae12defb44b61ddff8b55011f983196 (patch)
treecc527620cdbe91522547b2d7014957525915fa65 /nuttx/drivers/bch/bchlib_write.c
parent41b50c286aaa99b848c4b21685f81ee2511f176a (diff)
downloadpx4-nuttx-bb95a53a6ae12defb44b61ddff8b55011f983196.tar.gz
px4-nuttx-bb95a53a6ae12defb44b61ddff8b55011f983196.tar.bz2
px4-nuttx-bb95a53a6ae12defb44b61ddff8b55011f983196.zip
Add support for the byte write method to MTD partition logic; Beef up the MTD partition test -- and fix resulting bugs detected
Diffstat (limited to 'nuttx/drivers/bch/bchlib_write.c')
-rw-r--r--nuttx/drivers/bch/bchlib_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/drivers/bch/bchlib_write.c b/nuttx/drivers/bch/bchlib_write.c
index 8d7dcf26f..14f32ff7c 100644
--- a/nuttx/drivers/bch/bchlib_write.c
+++ b/nuttx/drivers/bch/bchlib_write.c
@@ -97,7 +97,7 @@ ssize_t bchlib_write(FAR void *handle, FAR const char *buffer, size_t offset, si
return 0;
}
- /* Convert the file position into a sector number an offset. */
+ /* Convert the file position into a sector number and offset. */
sector = offset / bch->sectsize;
sectoffset = offset - sector * bch->sectsize;