diff options
author | Yan Burman <burman.yan@gmail.com> | 2006-12-04 14:58:35 -0800 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2006-12-07 13:46:43 -0800 |
commit | 52fd91088bcbaea5ab441d09d39c21eb684e54ea (patch) | |
tree | eb267a56aebd72cad95d388806046137e2a5b577 /arch/ia64/hp/sim | |
parent | 66888a6e5ffc756b9a4115fc766ee2258eefb928 (diff) | |
download | kernel_samsung_tuna-52fd91088bcbaea5ab441d09d39c21eb684e54ea.zip kernel_samsung_tuna-52fd91088bcbaea5ab441d09d39c21eb684e54ea.tar.gz kernel_samsung_tuna-52fd91088bcbaea5ab441d09d39c21eb684e54ea.tar.bz2 |
[IA64] 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: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/hp/sim')
-rw-r--r-- | arch/ia64/hp/sim/simserial.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/ia64/hp/sim/simserial.c b/arch/ia64/hp/sim/simserial.c index b62f0c4..1f16ebb9 100644 --- a/arch/ia64/hp/sim/simserial.c +++ b/arch/ia64/hp/sim/simserial.c @@ -684,12 +684,11 @@ static int get_async_struct(int line, struct async_struct **ret_info) *ret_info = sstate->info; return 0; } - info = kmalloc(sizeof(struct async_struct), GFP_KERNEL); + info = kzalloc(sizeof(struct async_struct), GFP_KERNEL); if (!info) { sstate->count--; return -ENOMEM; } - memset(info, 0, sizeof(struct async_struct)); init_waitqueue_head(&info->open_wait); init_waitqueue_head(&info->close_wait); init_waitqueue_head(&info->delta_msr_wait); |