Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=733cb1e44047ed88f97754fbfd5173741b6dca1a
Commit:     733cb1e44047ed88f97754fbfd5173741b6dca1a
Parent:     8eb891fc809b2300137bcd247025628c06c95a63
Author:     Mariusz Kozlowski <[EMAIL PROTECTED]>
AuthorDate: Fri Aug 10 14:00:47 2007 -0700
Committer:  Pierre Ossman <[EMAIL PROTECTED]>
CommitDate: Thu Aug 23 06:26:26 2007 +0200

    drivers/mmc/core/bus.c: kmalloc + memset conversion to kzalloc
    
     drivers/mmc/core/bus.c | 5663 -> 5619 (-44 bytes)
     drivers/mmc/core/bus.o | 70899 -> 70731 (-168 bytes)
    
    Signed-off-by: Mariusz Kozlowski <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Pierre Ossman <[EMAIL PROTECTED]>
---
 drivers/mmc/core/bus.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/drivers/mmc/core/bus.c b/drivers/mmc/core/bus.c
index fe0e785..817a794 100644
--- a/drivers/mmc/core/bus.c
+++ b/drivers/mmc/core/bus.c
@@ -186,12 +186,10 @@ struct mmc_card *mmc_alloc_card(struct mmc_host *host)
 {
        struct mmc_card *card;
 
-       card = kmalloc(sizeof(struct mmc_card), GFP_KERNEL);
+       card = kzalloc(sizeof(struct mmc_card), GFP_KERNEL);
        if (!card)
                return ERR_PTR(-ENOMEM);
 
-       memset(card, 0, sizeof(struct mmc_card));
-
        card->host = host;
 
        device_initialize(&card->dev);
-
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