projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb65946
)
sdio: kmalloc + memset conversion to kzalloc
author
Mariusz Kozlowski
<m.kozlowski@tuxland.pl>
Tue, 31 Jul 2007 22:05:24 +0000
(
00:05
+0200)
committer
Pierre Ossman
<drzeus@drzeus.cx>
Sun, 23 Sep 2007 19:22:45 +0000
(21:22 +0200)
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/core/sdio_bus.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mmc/core/sdio_bus.c
b/drivers/mmc/core/sdio_bus.c
index fcb13fb0daad3ff97700ac09cb80d9ef6fcb1e95..683d91740109ebfe9a5b6bd22b2d96b7287cfab8 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;
- 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);
- memset(func, 0, sizeof(struct sdio_func));
-
func->card = card;
device_initialize(&func->dev);