diff options
author | Yan Burman <burman.yan@gmail.com> | 2006-12-04 14:58:35 -0800 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2006-12-07 13:46:43 -0800 |
commit | 52fd91088bcbaea5ab441d09d39c21eb684e54ea (patch) | |
tree | eb267a56aebd72cad95d388806046137e2a5b577 /arch/ia64/hp/common | |
parent | 66888a6e5ffc756b9a4115fc766ee2258eefb928 (diff) | |
download | linux-52fd91088bcbaea5ab441d09d39c21eb684e54ea.tar.gz linux-52fd91088bcbaea5ab441d09d39c21eb684e54ea.tar.bz2 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/hp/common')
-rw-r--r-- | arch/ia64/hp/common/sba_iommu.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/ia64/hp/common/sba_iommu.c b/arch/ia64/hp/common/sba_iommu.c index 14691cda05c3..ce49fe3a3b56 100644 --- a/arch/ia64/hp/common/sba_iommu.c +++ b/arch/ia64/hp/common/sba_iommu.c @@ -1672,15 +1672,13 @@ ioc_sac_init(struct ioc *ioc) * SAC (single address cycle) addressable, so allocate a * pseudo-device to enforce that. */ - sac = kmalloc(sizeof(*sac), GFP_KERNEL); + sac = kzalloc(sizeof(*sac), GFP_KERNEL); if (!sac) panic(PFX "Couldn't allocate struct pci_dev"); - memset(sac, 0, sizeof(*sac)); - controller = kmalloc(sizeof(*controller), GFP_KERNEL); + controller = kzalloc(sizeof(*controller), GFP_KERNEL); if (!controller) panic(PFX "Couldn't allocate struct pci_controller"); - memset(controller, 0, sizeof(*controller)); controller->iommu = ioc; sac->sysdata = controller; @@ -1737,12 +1735,10 @@ ioc_init(u64 hpa, void *handle) struct ioc *ioc; struct ioc_iommu *info; - ioc = kmalloc(sizeof(*ioc), GFP_KERNEL); + ioc = kzalloc(sizeof(*ioc), GFP_KERNEL); if (!ioc) return NULL; - memset(ioc, 0, sizeof(*ioc)); - ioc->next = ioc_list; ioc_list = ioc; |