[PATCH] m68k: replace kmalloc+memset with kzalloc
Replace kmalloc+memset with kzalloc Signed-off-by: Yan Burman <burman.yan@gmail.com> Cc: Roman Zippel <zippel@linux-m68k.org> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
58e14b148d
commit
8bcbdf603b
@@ -375,10 +375,9 @@ struct pci_bus_info * __init init_hades_pci(void)
|
||||
* Allocate memory for bus info structure.
|
||||
*/
|
||||
|
||||
bus = kmalloc(sizeof(struct pci_bus_info), GFP_KERNEL);
|
||||
bus = kzalloc(sizeof(struct pci_bus_info), GFP_KERNEL);
|
||||
if (!bus)
|
||||
return NULL;
|
||||
memset(bus, 0, sizeof(struct pci_bus_info));
|
||||
|
||||
/*
|
||||
* Claim resources. The m68k has no separate I/O space, both
|
||||
|
Reference in New Issue
Block a user