Skip to content

Commit

Permalink
sdio: kmalloc + memset conversion to kzalloc
Browse files Browse the repository at this point in the history
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
  • Loading branch information
Mariusz Kozlowski authored and Pierre Ossman committed Sep 23, 2007
1 parent eb65946 commit 9f2fcf9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/mmc/core/sdio_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9f2fcf9

Please sign in to comment.