From f8d20db23e41f2cb8f1e99f8f4f7965c215c9677 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 31 Aug 2014 17:34:44 -0600 Subject: Reanem kzalloc to kmm_zalloc for consistency --- nuttx/audio/audio.c | 4 ++-- nuttx/audio/pcm_decode.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'nuttx/audio') 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. */ -- cgit v1.2.3