summaryrefslogtreecommitdiff
path: root/nuttx/audio
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-08-31 17:34:44 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-08-31 17:34:44 -0600
commitf8d20db23e41f2cb8f1e99f8f4f7965c215c9677 (patch)
tree45c7a57c201427409d0f4b78c803d6e240f79f43 /nuttx/audio
parent306de6c62392400107ea8a9d6e3aa13dd202b742 (diff)
downloadpx4-nuttx-f8d20db23e41f2cb8f1e99f8f4f7965c215c9677.tar.gz
px4-nuttx-f8d20db23e41f2cb8f1e99f8f4f7965c215c9677.tar.bz2
px4-nuttx-f8d20db23e41f2cb8f1e99f8f4f7965c215c9677.zip
Reanem kzalloc to kmm_zalloc for consistency
Diffstat (limited to 'nuttx/audio')
-rw-r--r--nuttx/audio/audio.c4
-rw-r--r--nuttx/audio/pcm_decode.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/audio/audio.c b/nuttx/audio/audio.c
index 3f0c9ebfb..763789c4d 100644
--- a/nuttx/audio/audio.c
+++ b/nuttx/audio/audio.c
@@ -882,14 +882,14 @@ int audio_register(FAR const char *name, FAR struct audio_lowerhalf_s *dev)
/* Allocate the upper-half data structure */
- upper = (FAR struct audio_upperhalf_s *)kzalloc(sizeof(struct audio_upperhalf_s));
+ upper = (FAR struct audio_upperhalf_s *)kmm_zalloc(sizeof(struct audio_upperhalf_s));
if (!upper)
{
auddbg("Allocation failed\n");
return -ENOMEM;
}
- /* Initialize the Audio device structure (it was already zeroed by kzalloc()) */
+ /* Initialize the Audio device structure (it was already zeroed by kmm_zalloc()) */
sem_init(&upper->exclsem, 0, 1);
upper->dev = dev;
diff --git a/nuttx/audio/pcm_decode.c b/nuttx/audio/pcm_decode.c
index f15f63a88..14e228a6d 100644
--- a/nuttx/audio/pcm_decode.c
+++ b/nuttx/audio/pcm_decode.c
@@ -1375,14 +1375,14 @@ FAR struct audio_lowerhalf_s *
/* Allocate an instance of our private data structure */
- priv = (FAR struct pcm_decode_s *)kzalloc(sizeof(struct pcm_decode_s));
+ priv = (FAR struct pcm_decode_s *)kmm_zalloc(sizeof(struct pcm_decode_s));
if (!priv)
{
auddbg("ERROR: Failed to allocate driver structure\n");
return NULL;
}
- /* Initialize our private data structure. Since kzalloc() was used for
+ /* Initialize our private data structure. Since kmm_zalloc() was used for
* the allocation, we need to initialize only non-zero, non-NULL, non-
* false fields.
*/