diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-02-21 22:33:09 +0000 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2006-02-21 22:33:09 +0000 |
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, CIFSSMBClose(xid, pTcon, fileHandle); } else if(newinode) { pCifsFile = - kmalloc(sizeof (struct cifsFileInfo), GFP_KERNEL); + kzalloc(sizeof (struct cifsFileInfo), GFP_KERNEL); if(pCifsFile == NULL) goto cifs_create_out; - memset((char *)pCifsFile, 0, - sizeof (struct cifsFileInfo)); pCifsFile->netfid = fileHandle; pCifsFile->pid = current->tgid; pCifsFile->pInode = newinode; |