Commit e66860cb authored by Deepak Saxena's avatar Deepak Saxena Committed by Linus Torvalds
Browse files

[PATCH] drivers/dio: kmalloc + memset -> kzalloc conversion

Signed-off-by: default avatarDeepak Saxena <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 5c857eeb
......@@ -224,11 +224,10 @@ static int __init dio_init(void)
/* Found a board, allocate it an entry in the list */
dev = kmalloc(sizeof(struct dio_dev), GFP_KERNEL);
dev = kzalloc(sizeof(struct dio_dev), GFP_KERNEL);
if (!dev)
return 0;
memset(dev, 0, sizeof(struct dio_dev));
dev->bus = &dio_bus;
dev->dev.parent = &;
dev->dev.bus = &dio_bus_type;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment