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

Commit 9f2fcf99 authored by Mariusz Kozlowski's avatar Mariusz Kozlowski Committed by Pierre Ossman
Browse files

sdio: kmalloc + memset conversion to kzalloc

parent eb659468
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -221,12 +221,10 @@ struct sdio_func *sdio_alloc_func(struct mmc_card *card)
{
	struct sdio_func *func;

	func = kmalloc(sizeof(struct sdio_func), GFP_KERNEL);
	func = kzalloc(sizeof(struct sdio_func), GFP_KERNEL);
	if (!func)
		return ERR_PTR(-ENOMEM);

	memset(func, 0, sizeof(struct sdio_func));

	func->card = card;

	device_initialize(&func->dev);