[ARM] Convert kmalloc+memset to kzalloc
[deliverable/linux.git] / arch / arm / kernel / ecard.c
index 74ea29c3205eb6b476a2c725858bf70895f9288f..00aa225e8d95ede70807e0f901bdb89d6da757a8 100644 (file)
@@ -807,14 +807,12 @@ static struct expansion_card *__init ecard_alloc_card(int type, int slot)
        unsigned long base;
        int i;
 
-       ec = kmalloc(sizeof(ecard_t), GFP_KERNEL);
+       ec = kzalloc(sizeof(ecard_t), GFP_KERNEL);
        if (!ec) {
                ec = ERR_PTR(-ENOMEM);
                goto nomem;
        }
 
-       memset(ec, 0, sizeof(ecard_t));
-
        ec->slot_no = slot;
        ec->type = type;
        ec->irq = NO_IRQ;
This page took 0.023859 seconds and 5 git commands to generate.