Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sdio: kmalloc + memset conversion to kzalloc

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>

authored by

Mariusz Kozlowski and committed by
Pierre Ossman
9f2fcf99 eb659468

+1 -3
+1 -3
drivers/mmc/core/sdio_bus.c
··· 221 221 { 222 222 struct sdio_func *func; 223 223 224 - func = kmalloc(sizeof(struct sdio_func), GFP_KERNEL); 224 + func = kzalloc(sizeof(struct sdio_func), GFP_KERNEL); 225 225 if (!func) 226 226 return ERR_PTR(-ENOMEM); 227 - 228 - memset(func, 0, sizeof(struct sdio_func)); 229 227 230 228 func->card = card; 231 229