提交 9f2fcf99 编写于 作者: M Mariusz Kozlowski 提交者: Pierre Ossman

sdio: kmalloc + memset conversion to kzalloc

Signed-off-by: NMariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
上级 eb659468
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册