diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2006-03-20 19:46:41 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-03-21 22:06:17 +0000 |
commit | d2a02b93cf78205dd23226efb66481569900976e (patch) | |
tree | 94760abdafe5cb72a41d3edd405a26d0c8e2e0d3 /arch/arm/kernel/apm.c | |
parent | 18ec5c731271939acb414614e964c15c8ef52156 (diff) | |
download | kernel_samsung_tuna-d2a02b93cf78205dd23226efb66481569900976e.zip kernel_samsung_tuna-d2a02b93cf78205dd23226efb66481569900976e.tar.gz kernel_samsung_tuna-d2a02b93cf78205dd23226efb66481569900976e.tar.bz2 |
[ARM] Convert kmalloc+memset to kzalloc
Convert all uses of kmalloc followed by memset to use kzalloc instead.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/apm.c')
-rw-r--r-- | arch/arm/kernel/apm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/kernel/apm.c b/arch/arm/kernel/apm.c index 766b6c0..2bed290 100644 --- a/arch/arm/kernel/apm.c +++ b/arch/arm/kernel/apm.c @@ -357,10 +357,8 @@ static int apm_open(struct inode * inode, struct file * filp) { struct apm_user *as; - as = (struct apm_user *)kmalloc(sizeof(*as), GFP_KERNEL); + as = (struct apm_user *)kzalloc(sizeof(*as), GFP_KERNEL); if (as) { - memset(as, 0, sizeof(*as)); - /* * XXX - this is a tiny bit broken, when we consider BSD * process accounting. If the device is opened by root, we |