projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sdio: kmalloc + memset conversion to kzalloc
[powerpc.git]
/
drivers
/
mmc
/
core
/
sdio_bus.c
diff --git
a/drivers/mmc/core/sdio_bus.c
b/drivers/mmc/core/sdio_bus.c
index
fcb13fb
..
683d917
100644
(file)
--- 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;
{
struct sdio_func *func;
- func = k
m
alloc(sizeof(struct sdio_func), GFP_KERNEL);
+ func = k
z
alloc(sizeof(struct sdio_func), GFP_KERNEL);
if (!func)
return ERR_PTR(-ENOMEM);
if (!func)
return ERR_PTR(-ENOMEM);
- memset(func, 0, sizeof(struct sdio_func));
-
func->card = card;
device_initialize(&func->dev);
func->card = card;
device_initialize(&func->dev);