diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-02-21 17:33:09 -0500 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2006-02-21 17:33:09 -0500 |
commit | a048d7a8704b35ff6372fdf5eedd4533f37b1885 (patch) | |
tree | 7d7bae306ef80fe4a99d21da404cf8c4f084ac37 /fs/cifs/dir.c | |
parent | e601ef22bc5ec9332c8d785533895ee81c834b8a (diff) |
[CIFS] Convert remaining places in fs/cifs from
kmalloc/memset to simpler kzalloc usage
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/dir.c')
-rw-r--r-- | fs/cifs/dir.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c index fed55e3c53df..77e1fc01d747 100644 --- a/fs/cifs/dir.c +++ b/fs/cifs/dir.c | |||
@@ -255,12 +255,10 @@ cifs_create(struct inode *inode, struct dentry *direntry, int mode, | |||
255 | CIFSSMBClose(xid, pTcon, fileHandle); | 255 | CIFSSMBClose(xid, pTcon, fileHandle); |
256 | } else if(newinode) { | 256 | } else if(newinode) { |
257 | pCifsFile = | 257 | pCifsFile = |
258 | kmalloc(sizeof (struct cifsFileInfo), GFP_KERNEL); | 258 | kzalloc(sizeof (struct cifsFileInfo), GFP_KERNEL); |
259 | 259 | ||
260 | if(pCifsFile == NULL) | 260 | if(pCifsFile == NULL) |
261 | goto cifs_create_out; | 261 | goto cifs_create_out; |
262 | memset((char *)pCifsFile, 0, | ||
263 | sizeof (struct cifsFileInfo)); | ||
264 | pCifsFile->netfid = fileHandle; | 262 | pCifsFile->netfid = fileHandle; |
265 | pCifsFile->pid = current->tgid; | 263 | pCifsFile->pid = current->tgid; |
266 | pCifsFile->pInode = newinode; | 264 | pCifsFile->pInode = newinode; |