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/drivers/pipes | |
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/drivers/pipes')
-rw-r--r-- | nuttx/drivers/pipes/pipe_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/drivers/pipes/pipe_common.c b/nuttx/drivers/pipes/pipe_common.c index aad49eff0..2acaeab97 100644 --- a/nuttx/drivers/pipes/pipe_common.c +++ b/nuttx/drivers/pipes/pipe_common.c @@ -151,7 +151,7 @@ FAR struct pipe_dev_s *pipecommon_allocdev(void) /* Allocate a private structure to manage the pipe */ - dev = (struct pipe_dev_s *)kmalloc(sizeof(struct pipe_dev_s)); + dev = (struct pipe_dev_s *)kmm_malloc(sizeof(struct pipe_dev_s)); if (dev) { /* Initialize the private structure */ @@ -212,7 +212,7 @@ int pipecommon_open(FAR struct file *filep) if (dev->d_refs == 0) { - dev->d_buffer = (uint8_t*)kmalloc(CONFIG_DEV_PIPE_SIZE); + dev->d_buffer = (uint8_t*)kmm_malloc(CONFIG_DEV_PIPE_SIZE); if (!dev->d_buffer) { (void)sem_post(&dev->d_bfsem); |