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

Commit 733cb1e4 authored by Mariusz Kozlowski's avatar Mariusz Kozlowski Committed by Pierre Ossman
Browse files

drivers/mmc/core/bus.c: kmalloc + memset conversion to kzalloc



 drivers/mmc/core/bus.c | 5663 -> 5619 (-44 bytes)
 drivers/mmc/core/bus.o | 70899 -> 70731 (-168 bytes)

Signed-off-by: default avatarMariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
parent 8eb891fc
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -186,12 +186,10 @@ struct mmc_card *mmc_alloc_card(struct mmc_host *host)
{
	struct mmc_card *card;

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

	memset(card, 0, sizeof(struct mmc_card));

	card->host = host;

	device_initialize(&card->dev);