diff options
author | Yan Burman <burman.yan@gmail.com> | 2006-12-07 05:34:51 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 17:39:29 +0100 |
commit | 8bcbdf603bc4bf24c2bcfa071871afb03dd3ae80 (patch) | |
tree | 234d6f79b5a94170be722d32b22cfef149d93231 /arch/m68k/atari | |
parent | [PATCH] Use freezeable workqueues in XFS (diff) | |
download | linux-8bcbdf603bc4bf24c2bcfa071871afb03dd3ae80.tar.xz linux-8bcbdf603bc4bf24c2bcfa071871afb03dd3ae80.zip |
[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>
Diffstat (limited to 'arch/m68k/atari')
-rw-r--r-- | arch/m68k/atari/hades-pci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/m68k/atari/hades-pci.c b/arch/m68k/atari/hades-pci.c index 6ca57b6564da..bee2b1443e36 100644 --- a/arch/m68k/atari/hades-pci.c +++ b/arch/m68k/atari/hades-pci.c @@ -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 |