[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>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user