summaryrefslogtreecommitdiff
path: root/nuttx/fs/smartfs/smartfs_utils.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-08-31 17:26:36 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-08-31 17:26:36 -0600
commit39c90ce1ce01a0b45451df19c1635240d47aaf29 (patch)
tree3814c0a5ce1961e161e268801e0529a926100ffb /nuttx/fs/smartfs/smartfs_utils.c
parente4f3869daedaf22dd224285cc7f0373e0a5025d2 (diff)
downloadpx4-nuttx-39c90ce1ce01a0b45451df19c1635240d47aaf29.tar.gz
px4-nuttx-39c90ce1ce01a0b45451df19c1635240d47aaf29.tar.bz2
px4-nuttx-39c90ce1ce01a0b45451df19c1635240d47aaf29.zip
Rename kmalloc to kmm_malloc for consistency
Diffstat (limited to 'nuttx/fs/smartfs/smartfs_utils.c')
-rw-r--r--nuttx/fs/smartfs/smartfs_utils.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/nuttx/fs/smartfs/smartfs_utils.c b/nuttx/fs/smartfs/smartfs_utils.c
index 86b43cb09..d14f9d9fa 100644
--- a/nuttx/fs/smartfs/smartfs_utils.c
+++ b/nuttx/fs/smartfs/smartfs_utils.c
@@ -210,8 +210,8 @@ int smartfs_mount(struct smartfs_mountpt_s *fs, bool writeable)
if (nextfs == NULL)
{
- fs->fs_rwbuffer = (char *) kmalloc(fs->fs_llformat.availbytes);
- fs->fs_workbuffer = (char *) kmalloc(256);
+ fs->fs_rwbuffer = (char *) kmm_malloc(fs->fs_llformat.availbytes);
+ fs->fs_workbuffer = (char *) kmm_malloc(256);
}
/* Now add ourselves to the linked list of SMART mounts */
@@ -227,8 +227,8 @@ int smartfs_mount(struct smartfs_mountpt_s *fs, bool writeable)
fs->fs_rootsector = SMARTFS_ROOT_DIR_SECTOR + fs->fs_llformat.rootdirnum;
#else
- fs->fs_rwbuffer = (char *) kmalloc(fs->fs_llformat.availbytes);
- fs->fs_workbuffer = (char *) kmalloc(256);
+ fs->fs_rwbuffer = (char *) kmm_malloc(fs->fs_llformat.availbytes);
+ fs->fs_workbuffer = (char *) kmm_malloc(256);
fs->fs_rootsector = SMARTFS_ROOT_DIR_SECTOR;
#endif
@@ -574,7 +574,7 @@ int smartfs_finddirentry(struct smartfs_mountpt_s *fs,
direntry->dfirst = dirstack[depth];
if (direntry->name == NULL)
{
- direntry->name = (char *) kmalloc(fs->fs_llformat.namesize+1);
+ direntry->name = (char *) kmm_malloc(fs->fs_llformat.namesize+1);
}
memset(direntry->name, 0, fs->fs_llformat.namesize + 1);
@@ -914,7 +914,7 @@ int smartfs_createentry(struct smartfs_mountpt_s *fs,
direntry->datlen = 0;
if (direntry->name == NULL)
{
- direntry->name = (FAR char *) kmalloc(fs->fs_llformat.namesize+1);
+ direntry->name = (FAR char *) kmm_malloc(fs->fs_llformat.namesize+1);
}
memset(direntry->name, 0, fs->fs_llformat.namesize+1);