From: Mariusz Kozlowski Date: Tue, 31 Jul 2007 22:05:24 +0000 (+0200) Subject: sdio: kmalloc + memset conversion to kzalloc X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=9f2fcf99394b34769e3243a7f42a0ba8d21fc774;p=deliverable%2Flinux.git sdio: kmalloc + memset conversion to kzalloc Signed-off-by: Mariusz Kozlowski Signed-off-by: Pierre Ossman --- diff --git a/drivers/mmc/core/sdio_bus.c b/drivers/mmc/core/sdio_bus.c index fcb13fb0daad..683d91740109 100644 --- a/drivers/mmc/core/sdio_bus.c +++ b/drivers/mmc/core/sdio_bus.c @@ -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);