diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-03-05 08:08:11 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-03-05 08:08:11 -0600 |
commit | dbca8f5549a676ec663f67d2bba9776f83b8fbf3 (patch) | |
tree | 4fa4fbe98f083568016afee3f8b9b1ae3a659ed2 /nuttx/drivers | |
parent | c22fe5519089b2897bbf13b576e17127b4ea764b (diff) | |
download | px4-nuttx-dbca8f5549a676ec663f67d2bba9776f83b8fbf3.tar.gz px4-nuttx-dbca8f5549a676ec663f67d2bba9776f83b8fbf3.tar.bz2 px4-nuttx-dbca8f5549a676ec663f67d2bba9776f83b8fbf3.zip |
Fix some BBRAM return values (from David Sidrane). Also some MTD-related cosmetic changes
Diffstat (limited to 'nuttx/drivers')
-rw-r--r-- | nuttx/drivers/mtd/mtd_config.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/drivers/mtd/mtd_config.c b/nuttx/drivers/mtd/mtd_config.c index fcf168b0d..c9162eae6 100644 --- a/nuttx/drivers/mtd/mtd_config.c +++ b/nuttx/drivers/mtd/mtd_config.c @@ -885,7 +885,7 @@ retry_relocate: if (dst_offset + sizeof(hdr) >= (dst_block + 1) * dev->erasesize) { - /* No room at end of dst block for another header. Go to next block. */ + /* No room at end of dst block for another header. Go to next block. */ dst_block++; dst_offset = dst_block * dev->erasesize + CONFIGDATA_BLOCK_HDR_SIZE; @@ -1271,7 +1271,8 @@ errout: * Name: mtdconfig_ioctl ****************************************************************************/ -static int mtdconfig_ioctl(FAR struct file *filep, int cmd, unsigned long arg) +static int mtdconfig_ioctl(FAR struct file *filep, int cmd, + unsigned long arg) { FAR struct inode *inode = filep->f_inode; FAR struct mtdconfig_struct_s *dev = inode->i_private; |