diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-08-31 17:34:44 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-08-31 17:34:44 -0600 |
commit | f8d20db23e41f2cb8f1e99f8f4f7965c215c9677 (patch) | |
tree | 45c7a57c201427409d0f4b78c803d6e240f79f43 /nuttx/fs/nfs | |
parent | 306de6c62392400107ea8a9d6e3aa13dd202b742 (diff) | |
download | px4-nuttx-f8d20db23e41f2cb8f1e99f8f4f7965c215c9677.tar.gz px4-nuttx-f8d20db23e41f2cb8f1e99f8f4f7965c215c9677.tar.bz2 px4-nuttx-f8d20db23e41f2cb8f1e99f8f4f7965c215c9677.zip |
Reanem kzalloc to kmm_zalloc for consistency
Diffstat (limited to 'nuttx/fs/nfs')
-rw-r--r-- | nuttx/fs/nfs/nfs_vfsops.c | 6 | ||||
-rw-r--r-- | nuttx/fs/nfs/rpc_clnt.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/fs/nfs/nfs_vfsops.c b/nuttx/fs/nfs/nfs_vfsops.c index 6654f3baf..362343d01 100644 --- a/nuttx/fs/nfs/nfs_vfsops.c +++ b/nuttx/fs/nfs/nfs_vfsops.c @@ -570,7 +570,7 @@ static int nfs_open(FAR struct file *filep, FAR const char *relpath, /* Pre-allocate the file private data to describe the opened file. */ - np = (struct nfsnode *)kzalloc(sizeof(struct nfsnode)); + np = (struct nfsnode *)kmm_zalloc(sizeof(struct nfsnode)); if (!np) { fdbg("ERROR: Failed to allocate private data\n"); @@ -1722,7 +1722,7 @@ static int nfs_bind(FAR struct inode *blkdriver, FAR const void *data, /* Create an instance of the mountpt state structure */ - nmp = (FAR struct nfsmount *)kzalloc(SIZEOF_nfsmount(buflen)); + nmp = (FAR struct nfsmount *)kmm_zalloc(SIZEOF_nfsmount(buflen)); if (!nmp) { fdbg("ERROR: Failed to allocate mountpoint structure\n"); @@ -1772,7 +1772,7 @@ static int nfs_bind(FAR struct inode *blkdriver, FAR const void *data, /* Create an instance of the rpc state structure */ - rpc = (struct rpcclnt *)kzalloc(sizeof(struct rpcclnt)); + rpc = (struct rpcclnt *)kmm_zalloc(sizeof(struct rpcclnt)); if (!rpc) { fdbg("ERROR: Failed to allocate rpc structure\n"); diff --git a/nuttx/fs/nfs/rpc_clnt.c b/nuttx/fs/nfs/rpc_clnt.c index cdf3639fc..e19588404 100644 --- a/nuttx/fs/nfs/rpc_clnt.c +++ b/nuttx/fs/nfs/rpc_clnt.c @@ -396,7 +396,7 @@ int rpcclnt_connect(struct rpcclnt *rpc) /* Create an instance of the socket state structure */ - so = (struct socket *)kzalloc(sizeof(struct socket)); + so = (struct socket *)kmm_zalloc(sizeof(struct socket)); if (!so) { fdbg("ERROR: Failed to allocate socket structure\n"); |