From: Mariusz Kozlowski drivers/mmc/core/bus.c | 5663 -> 5619 (-44 bytes) drivers/mmc/core/bus.o | 70899 -> 70731 (-168 bytes) Signed-off-by: Mariusz Kozlowski Signed-off-by: Andrew Morton --- drivers/mmc/core/bus.c | 4 +--- 1 files changed, 1 insertion(+), 3 deletions(-) diff -puN drivers/mmc/core/bus.c~drivers-mmc-core-busc-kmalloc-memset-conversion-to-kzalloc drivers/mmc/core/bus.c --- a/drivers/mmc/core/bus.c~drivers-mmc-core-busc-kmalloc-memset-conversion-to-kzalloc +++ a/drivers/mmc/core/bus.c @@ -206,12 +206,10 @@ struct mmc_card *mmc_alloc_card(struct m { 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); _