Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=73a985a140cd0f1b17fa1438af0359d6b9b32b16
Commit:     73a985a140cd0f1b17fa1438af0359d6b9b32b16
Parent:     782e3b3b3804c38d5130c7f21d7ec7bf6709023f
Author:     Mariusz Kozlowski <[EMAIL PROTECTED]>
AuthorDate: Tue Jul 31 19:14:28 2007 +0200
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Fri Oct 12 15:03:13 2007 -0700

    PCI Hotplug: cpqphp_ctrl.c: kmalloc + memset conversion to kzalloc
    
     drivers/pci/hotplug/cpqphp_ctrl.c | 79698 -> 79638 (-60 bytes)
     drivers/pci/hotplug/cpqphp_ctrl.o | 192896 -> 192736 (-160 bytes)
    
    Signed-off-by: Mariusz Kozlowski <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
---
 drivers/pci/hotplug/cpqphp_ctrl.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/drivers/pci/hotplug/cpqphp_ctrl.c 
b/drivers/pci/hotplug/cpqphp_ctrl.c
index 37d72f1..dcafa2a 100644
--- a/drivers/pci/hotplug/cpqphp_ctrl.c
+++ b/drivers/pci/hotplug/cpqphp_ctrl.c
@@ -973,16 +973,13 @@ struct pci_func *cpqhp_slot_create(u8 busnumber)
        struct pci_func *new_slot;
        struct pci_func *next;
 
-       new_slot = kmalloc(sizeof(*new_slot), GFP_KERNEL);
-
+       new_slot = kzalloc(sizeof(*new_slot), GFP_KERNEL);
        if (new_slot == NULL) {
                /* I'm not dead yet!
                 * You will be. */
                return new_slot;
        }
 
-       memset(new_slot, 0, sizeof(struct pci_func));
-
        new_slot->next = NULL;
        new_slot->configured = 1;
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to