summaryrefslogtreecommitdiffstats
path: root/fs/afs/server.c
diff options
context:
space:
mode:
authorYan Burman <burman.yan@gmail.com>2006-12-06 20:40:32 -0800
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-07 08:39:45 -0800
commitb593e48d2bf09c40c0f5165f2f2a10cc3983ea51 (patch)
tree5eba2dd937d9ce14790776542a2835c8e19e2c2f /fs/afs/server.c
parent4d2d3cec1da18123b301270381eb748e5ba4f638 (diff)
[PATCH] affs: replace kmalloc+memset with kzalloc
Replace kmalloc+memset with kzalloc Signed-off-by: Yan Burman <burman.yan@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/afs/server.c')
-rw-r--r--fs/afs/server.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/afs/server.c b/fs/afs/server.c
index 22afaae1a4c..44aff81dc6a 100644
--- a/fs/afs/server.c
+++ b/fs/afs/server.c
@@ -55,13 +55,12 @@ int afs_server_lookup(struct afs_cell *cell, const struct in_addr *addr,
_enter("%p,%08x,", cell, ntohl(addr->s_addr));
/* allocate and initialise a server record */
- server = kmalloc(sizeof(struct afs_server), GFP_KERNEL);
+ server = kzalloc(sizeof(struct afs_server), GFP_KERNEL);
if (!server) {
_leave(" = -ENOMEM");
return -ENOMEM;
}
- memset(server, 0, sizeof(struct afs_server));
atomic_set(&server->usage, 1);
INIT_LIST_HEAD(&server->link);