diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-08-31 17:04:02 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-08-31 17:04:02 -0600 |
commit | 7482b7ad0f60724e593a8919783444ef79f4c79e (patch) | |
tree | 396e7019c35eb0f49f430c1132972eedc292a752 /nuttx/fs/fat/fs_fat32.c | |
parent | 2ad3a4c2a2b56a721180faa3c689110d86d90359 (diff) | |
download | px4-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/fs/fat/fs_fat32.c')
-rw-r--r-- | nuttx/fs/fat/fs_fat32.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nuttx/fs/fat/fs_fat32.c b/nuttx/fs/fat/fs_fat32.c index 3890810d4..677924057 100644 --- a/nuttx/fs/fat/fs_fat32.c +++ b/nuttx/fs/fat/fs_fat32.c @@ -363,7 +363,7 @@ static int fat_open(FAR struct file *filep, const char *relpath, off_t offset = fat_seek(filep, ff->ff_size, SEEK_SET); if (offset < 0) { - kfree(ff); + kmm_free(ff); return (int)offset; } } @@ -375,7 +375,7 @@ static int fat_open(FAR struct file *filep, const char *relpath, */ errout_with_struct: - kfree(ff); + kmm_free(ff); errout_with_semaphore: fat_semgive(fs); @@ -425,7 +425,7 @@ static int fat_close(FAR struct file *filep) /* Then free the file structure itself. */ - kfree(ff); + kmm_free(ff); filep->f_priv = NULL; return ret; } @@ -1417,7 +1417,7 @@ static int fat_dup(FAR const struct file *oldp, FAR struct file *newp) */ errout_with_struct: - kfree(newff); + kmm_free(newff); errout_with_semaphore: fat_semgive(fs); @@ -1778,7 +1778,7 @@ static int fat_bind(FAR struct inode *blkdriver, const void *data, if (ret != 0) { sem_destroy(&fs->fs_sem); - kfree(fs); + kmm_free(fs); return ret; } @@ -1849,7 +1849,7 @@ static int fat_unbind(void *handle, FAR struct inode **blkdriver) fat_io_free(fs->fs_buffer, fs->fs_hwsectorsize); } - kfree(fs); + kmm_free(fs); } fat_semgive(fs); |