Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent 5c857eeb
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;