summaryrefslogtreecommitdiff
path: root/nuttx/drivers/mtd/mtd_partition.c
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/drivers/mtd/mtd_partition.c
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/drivers/mtd/mtd_partition.c')
-rw-r--r--nuttx/drivers/mtd/mtd_partition.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/drivers/mtd/mtd_partition.c b/nuttx/drivers/mtd/mtd_partition.c
index e753cc055..4b7931e78 100644
--- a/nuttx/drivers/mtd/mtd_partition.c
+++ b/nuttx/drivers/mtd/mtd_partition.c
@@ -495,7 +495,7 @@ static int part_procfs_open(FAR struct file *filep, FAR const char *relpath,
/* Allocate a container to hold the task and attribute selection */
- attr = (FAR struct part_procfs_file_s *)kzalloc(sizeof(struct part_procfs_file_s));
+ attr = (FAR struct part_procfs_file_s *)kmm_zalloc(sizeof(struct part_procfs_file_s));
if (!attr)
{
fdbg("ERROR: Failed to allocate file attributes\n");
@@ -711,7 +711,7 @@ static int part_procfs_dup(FAR const struct file *oldp, FAR struct file *newp)
/* Allocate a new container to hold the task and attribute selection */
- newattr = (FAR struct part_procfs_file_s *)kzalloc(sizeof(struct part_procfs_file_s));
+ newattr = (FAR struct part_procfs_file_s *)kmm_zalloc(sizeof(struct part_procfs_file_s));
if (!newattr)
{
fdbg("ERROR: Failed to allocate file attributes\n");
@@ -833,7 +833,7 @@ FAR struct mtd_dev_s *mtd_partition(FAR struct mtd_dev_s *mtd, off_t firstblock,
/* Allocate a partition device structure */
- part = (FAR struct mtd_partition_s *)kzalloc(sizeof(struct mtd_partition_s));
+ part = (FAR struct mtd_partition_s *)kmm_zalloc(sizeof(struct mtd_partition_s));
if (!part)
{
fdbg("ERROR: Failed to allocate memory for the partition device\n");
@@ -841,7 +841,7 @@ FAR struct mtd_dev_s *mtd_partition(FAR struct mtd_dev_s *mtd, off_t firstblock,
}
/* Initialize the partition device structure. (unsupported methods were
- * nullified by kzalloc).
+ * nullified by kmm_zalloc).
*/
part->child.erase = part_erase;