Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=eaa33a9ac04cf5760cf4e661241db19f4151cf06
Commit:     eaa33a9ac04cf5760cf4e661241db19f4151cf06
Parent:     5858ae44e289ac6c809af3fe81b9a6ed41914d41
Author:     vignesh <[EMAIL PROTECTED]>
AuthorDate: Wed Apr 25 12:13:48 2007 +0000
Committer:  Steve French <[EMAIL PROTECTED]>
CommitDate: Wed Apr 25 12:13:48 2007 +0000

    [CIFS] Replace kmalloc/memset combination with kzalloc
    
    Signed-off-by: Vignesh Babu <[EMAIL PROTECTED]>
    Signed-off-by: Steve French <[EMAIL PROTECTED]>
---
 fs/cifs/readdir.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c
index 3fab8ed..b80b0fc 100644
--- a/fs/cifs/readdir.c
+++ b/fs/cifs/readdir.c
@@ -432,14 +432,11 @@ static int initiate_cifs_search(const int xid, struct 
file *file)
 
        if(file->private_data == NULL) {
                file->private_data = 
-                       kmalloc(sizeof(struct cifsFileInfo),GFP_KERNEL);
+                       kzalloc(sizeof(struct cifsFileInfo),GFP_KERNEL);
        }
 
-       if(file->private_data == NULL) {
+       if(file->private_data == NULL)
                return -ENOMEM;
-       } else {
-               memset(file->private_data,0,sizeof(struct cifsFileInfo));
-       }
        cifsFile = file->private_data;
        cifsFile->invalidHandle = TRUE;
        cifsFile->srch_inf.endOfSearch = FALSE;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to