diff options
author | Yan Burman <burman.yan@gmail.com> | 2006-12-04 23:58:35 +0100 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2006-12-07 22:46:43 +0100 |
commit | 52fd91088bcbaea5ab441d09d39c21eb684e54ea (patch) | |
tree | eb267a56aebd72cad95d388806046137e2a5b577 /arch/ia64/pci/pci.c | |
parent | [IA64] resolve name clash by renaming is_available_memory() (diff) | |
download | linux-52fd91088bcbaea5ab441d09d39c21eb684e54ea.tar.xz linux-52fd91088bcbaea5ab441d09d39c21eb684e54ea.zip |
[IA64] replace kmalloc+memset with kzalloc
Replace kmalloc+memset with kzalloc
Signed-off-by: Yan Burman <burman.yan@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/pci/pci.c')
-rw-r--r-- | arch/ia64/pci/pci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c index eb92cef9cd0d..474d179966dc 100644 --- a/arch/ia64/pci/pci.c +++ b/arch/ia64/pci/pci.c @@ -125,11 +125,10 @@ alloc_pci_controller (int seg) { struct pci_controller *controller; - controller = kmalloc(sizeof(*controller), GFP_KERNEL); + controller = kzalloc(sizeof(*controller), GFP_KERNEL); if (!controller) return NULL; - memset(controller, 0, sizeof(*controller)); controller->segment = seg; controller->node = -1; return controller; |