Skip to content

Commit

Permalink
[PATCH] drivers/dio: kmalloc + memset -> kzalloc conversion
Browse files Browse the repository at this point in the history
Signed-off-by: Deepak Saxena <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Deepak Saxena authored and Linus Torvalds committed Nov 7, 2005
1 parent 5c857ee commit e66860c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/dio/dio.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,10 @@ static int __init dio_init(void)
set_fs(fs);

/* 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 = &dio_bus.dev;
dev->dev.bus = &dio_bus_type;
Expand Down

0 comments on commit e66860c

Please sign in to comment.