summaryrefslogtreecommitdiff
path: root/nuttx/drivers/bch
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-08-31 17:04:02 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-08-31 17:04:02 -0600
commit7482b7ad0f60724e593a8919783444ef79f4c79e (patch)
tree396e7019c35eb0f49f430c1132972eedc292a752 /nuttx/drivers/bch
parent2ad3a4c2a2b56a721180faa3c689110d86d90359 (diff)
downloadpx4-nuttx-7482b7ad0f60724e593a8919783444ef79f4c79e.tar.gz
px4-nuttx-7482b7ad0f60724e593a8919783444ef79f4c79e.tar.bz2
px4-nuttx-7482b7ad0f60724e593a8919783444ef79f4c79e.zip
Rename kfree to kmm_free for consistency with other naming conventions
Diffstat (limited to 'nuttx/drivers/bch')
-rw-r--r--nuttx/drivers/bch/bchlib_setup.c2
-rw-r--r--nuttx/drivers/bch/bchlib_teardown.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/drivers/bch/bchlib_setup.c b/nuttx/drivers/bch/bchlib_setup.c
index 1026248b5..7b2155158 100644
--- a/nuttx/drivers/bch/bchlib_setup.c
+++ b/nuttx/drivers/bch/bchlib_setup.c
@@ -154,6 +154,6 @@ int bchlib_setup(const char *blkdev, bool readonly, FAR void **handle)
return OK;
errout_with_bch:
- kfree(bch);
+ kmm_free(bch);
return ret;
}
diff --git a/nuttx/drivers/bch/bchlib_teardown.c b/nuttx/drivers/bch/bchlib_teardown.c
index 8657c4a69..8d1f45ed9 100644
--- a/nuttx/drivers/bch/bchlib_teardown.c
+++ b/nuttx/drivers/bch/bchlib_teardown.c
@@ -103,11 +103,11 @@ int bchlib_teardown(FAR void *handle)
if (bch->buffer)
{
- kfree(bch->buffer);
+ kmm_free(bch->buffer);
}
sem_destroy(&bch->sem);
- kfree(bch);
+ kmm_free(bch);
return OK;
}