diff options
author | Yan Burman <burman.yan@gmail.com> | 2006-12-06 20:40:32 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 08:39:45 -0800 |
commit | b593e48d2bf09c40c0f5165f2f2a10cc3983ea51 (patch) | |
tree | 5eba2dd937d9ce14790776542a2835c8e19e2c2f /fs/afs/super.c | |
parent | 4d2d3cec1da18123b301270381eb748e5ba4f638 (diff) | |
download | linux-3.10-b593e48d2bf09c40c0f5165f2f2a10cc3983ea51.tar.gz linux-3.10-b593e48d2bf09c40c0f5165f2f2a10cc3983ea51.tar.bz2 linux-3.10-b593e48d2bf09c40c0f5165f2f2a10cc3983ea51.zip |
[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/super.c')
-rw-r--r-- | fs/afs/super.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/afs/super.c b/fs/afs/super.c index 9a351c4c756..18d9b77ba40 100644 --- a/fs/afs/super.c +++ b/fs/afs/super.c @@ -242,14 +242,12 @@ static int afs_fill_super(struct super_block *sb, void *data, int silent) kenter(""); /* allocate a superblock info record */ - as = kmalloc(sizeof(struct afs_super_info), GFP_KERNEL); + as = kzalloc(sizeof(struct afs_super_info), GFP_KERNEL); if (!as) { _leave(" = -ENOMEM"); return -ENOMEM; } - memset(as, 0, sizeof(struct afs_super_info)); - afs_get_volume(params->volume); as->volume = params->volume; |