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

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
...@@ -186,12 +186,10 @@ struct mmc_card *mmc_alloc_card(struct mmc_host *host) ...@@ -186,12 +186,10 @@ struct mmc_card *mmc_alloc_card(struct mmc_host *host)
{ {
struct mmc_card *card; struct mmc_card *card;
card = kmalloc(sizeof(struct mmc_card), GFP_KERNEL); card = kzalloc(sizeof(struct mmc_card), GFP_KERNEL);
if (!card) if (!card)
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
memset(card, 0, sizeof(struct mmc_card));
card->host = host; card->host = host;
device_initialize(&card->dev); device_initialize(&card->dev);
......
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