summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2007-08-01 00:05:24 +0200
committerPierre Ossman <drzeus@drzeus.cx>2007-09-23 21:22:45 +0200
commit9f2fcf99394b34769e3243a7f42a0ba8d21fc774 (patch)
treea8e4a88b3bf36995f6106dd58a433ad08f254dd7 /drivers/mmc
parenteb6594689226663968ef0a9fd71ec5e1e4e04f9c (diff)
downloadop-kernel-dev-9f2fcf99394b34769e3243a7f42a0ba8d21fc774.zip
op-kernel-dev-9f2fcf99394b34769e3243a7f42a0ba8d21fc774.tar.gz
sdio: kmalloc + memset conversion to kzalloc
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/core/sdio_bus.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mmc/core/sdio_bus.c b/drivers/mmc/core/sdio_bus.c
index fcb13fb..683d917 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);
OpenPOWER on IntegriCloud