diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-08-31 17:26:36 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-08-31 17:26:36 -0600 |
commit | 39c90ce1ce01a0b45451df19c1635240d47aaf29 (patch) | |
tree | 3814c0a5ce1961e161e268801e0529a926100ffb /nuttx/fs/romfs | |
parent | e4f3869daedaf22dd224285cc7f0373e0a5025d2 (diff) | |
download | px4-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/romfs')
-rw-r--r-- | nuttx/fs/romfs/fs_romfs.c | 2 | ||||
-rw-r--r-- | nuttx/fs/romfs/fs_romfsutil.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/fs/romfs/fs_romfs.c b/nuttx/fs/romfs/fs_romfs.c index 1197270ef..cbc0cbe81 100644 --- a/nuttx/fs/romfs/fs_romfs.c +++ b/nuttx/fs/romfs/fs_romfs.c @@ -637,7 +637,7 @@ static int romfs_dup(FAR const struct file *oldp, FAR struct file *newp) * dup'ed file. */ - newrf = (FAR struct romfs_file_s *)kmalloc(sizeof(struct romfs_file_s)); + newrf = (FAR struct romfs_file_s *)kmm_malloc(sizeof(struct romfs_file_s)); if (!newrf) { fdbg("Failed to allocate private data\n", ret); diff --git a/nuttx/fs/romfs/fs_romfsutil.c b/nuttx/fs/romfs/fs_romfsutil.c index 36de75ed5..ce945a669 100644 --- a/nuttx/fs/romfs/fs_romfsutil.c +++ b/nuttx/fs/romfs/fs_romfsutil.c @@ -560,7 +560,7 @@ int romfs_hwconfigure(struct romfs_mountpt_s *rm) /* Allocate the device cache buffer for normal sector accesses */ - rm->rm_buffer = (uint8_t*)kmalloc(rm->rm_hwsectorsize); + rm->rm_buffer = (uint8_t*)kmm_malloc(rm->rm_hwsectorsize); if (!rm->rm_buffer) { return -ENOMEM; @@ -648,7 +648,7 @@ int romfs_fileconfigure(struct romfs_mountpt_s *rm, struct romfs_file_s *rf) /* Create a file buffer to support partial sector accesses */ - rf->rf_buffer = (uint8_t*)kmalloc(rm->rm_hwsectorsize); + rf->rf_buffer = (uint8_t*)kmm_malloc(rm->rm_hwsectorsize); if (!rf->rf_buffer) { return -ENOMEM; |