]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/arm26/kernel/ecard.c
[PATCH] arm26: replace kmalloc+memset with kzalloc
[mv-sheeva.git] / arch / arm26 / kernel / ecard.c
index f2278aadac8a28638312039ff3f6cd05cd4db640..43dd41be71fb80ac1ac7f0898924c77902b9bd5f 100644 (file)
@@ -24,7 +24,6 @@
  */
 #define ECARD_C
 
-#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
@@ -621,12 +620,10 @@ ecard_probe(int slot, card_type_t type)
        struct ex_ecid cid;
        int i, rc = -ENOMEM;
 
-       ec = kmalloc(sizeof(ecard_t), GFP_KERNEL);
+       ec = kzalloc(sizeof(ecard_t), GFP_KERNEL);
        if (!ec)
                goto nomem;
 
-       memset(ec, 0, sizeof(ecard_t));
-
        ec->slot_no     = slot;
        ec->type        = type;
        ec->irq         = NO_IRQ;