diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-03-20 13:44:10 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-20 13:44:10 -0500 |
commit | bd6475454c774bd9dbe6078d94bbf72b1d3b65f4 (patch) | |
tree | 641c38589e2aa02a22db229be7d77c9c342a81cb /fs/nfs/idmap.c | |
parent | a162a6b804b48c605d1fd35e1861a5d32d00ad3f (diff) |
NFS: kzalloc conversion in fs/nfs
this converts fs/nfs to kzalloc() usage.
compile tested with make allyesconfig
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/idmap.c')
-rw-r--r-- | fs/nfs/idmap.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/nfs/idmap.c b/fs/nfs/idmap.c index 32c95a0d93f3..b89d27f93d66 100644 --- a/fs/nfs/idmap.c +++ b/fs/nfs/idmap.c | |||
@@ -101,11 +101,9 @@ nfs_idmap_new(struct nfs4_client *clp) | |||
101 | 101 | ||
102 | if (clp->cl_idmap != NULL) | 102 | if (clp->cl_idmap != NULL) |
103 | return; | 103 | return; |
104 | if ((idmap = kmalloc(sizeof(*idmap), GFP_KERNEL)) == NULL) | 104 | if ((idmap = kzalloc(sizeof(*idmap), GFP_KERNEL)) == NULL) |
105 | return; | 105 | return; |
106 | 106 | ||
107 | memset(idmap, 0, sizeof(*idmap)); | ||
108 | |||
109 | snprintf(idmap->idmap_path, sizeof(idmap->idmap_path), | 107 | snprintf(idmap->idmap_path, sizeof(idmap->idmap_path), |
110 | "%s/idmap", clp->cl_rpcclient->cl_pathname); | 108 | "%s/idmap", clp->cl_rpcclient->cl_pathname); |
111 | 109 | ||