From: Wei Yongjun Date: Mon, 3 Dec 2012 15:11:34 +0000 (+0100) Subject: s390/pci: use kmem_cache_zalloc instead of kmem_cache_alloc/memset X-Git-Tag: v3.8-rc1~123^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4118fee78dabb138b548bd42694f3437a8830b60;p=profile%2Fivi%2Fkernel-x86-ivi.git s390/pci: use kmem_cache_zalloc instead of kmem_cache_alloc/memset Using kmem_cache_zalloc() instead of kmem_cache_alloc() and memset(). Signed-off-by: Wei Yongjun Signed-off-by: Martin Schwidefsky --- diff --git a/arch/s390/pci/pci.c b/arch/s390/pci/pci.c index 0723b1077a6..b0cef4db241 100644 --- a/arch/s390/pci/pci.c +++ b/arch/s390/pci/pci.c @@ -602,10 +602,9 @@ struct zpci_dev *zpci_alloc_device(void) return ERR_PTR(-ENOMEM); /* Alloc aibv & callback space */ - zdev->irq_map = kmem_cache_alloc(zdev_irq_cache, GFP_KERNEL); + zdev->irq_map = kmem_cache_zalloc(zdev_irq_cache, GFP_KERNEL); if (!zdev->irq_map) goto error; - memset(zdev->irq_map, 0, sizeof(*zdev->irq_map)); WARN_ON((u64) zdev->irq_map & 0xff); return zdev;