]> err.no Git - linux-2.6/blobdiff - net/atm/mpc.c
[S390] Cleanup in signal handling code.
[linux-2.6] / net / atm / mpc.c
index 9aafe1e2f04802a2398f51168cbcc4c4d53d300f..00704661e83f684872796f25d96f4b1c6501f56e 100644 (file)
@@ -258,10 +258,9 @@ static struct mpoa_client *alloc_mpc(void)
 {
        struct mpoa_client *mpc;
 
-       mpc = kmalloc(sizeof (struct mpoa_client), GFP_KERNEL);
+       mpc = kzalloc(sizeof (struct mpoa_client), GFP_KERNEL);
        if (mpc == NULL)
                return NULL;
-       memset(mpc, 0, sizeof(struct mpoa_client));
        rwlock_init(&mpc->ingress_lock);
        rwlock_init(&mpc->egress_lock);
        mpc->next = mpcs;