Skip to content

Commit

Permalink
drivers/mmc/core/bus.c: kmalloc + memset conversion to kzalloc
Browse files Browse the repository at this point in the history
 drivers/mmc/core/bus.c | 5663 -> 5619 (-44 bytes)
 drivers/mmc/core/bus.o | 70899 -> 70731 (-168 bytes)

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
  • Loading branch information
Mariusz Kozlowski authored and Pierre Ossman committed Aug 23, 2007
1 parent 8eb891f commit 733cb1e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/mmc/core/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 733cb1e

Please sign in to comment.