X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=net%2Fatm%2Fmpc.c;h=00704661e83f684872796f25d96f4b1c6501f56e;hb=0da974f4f303a6842516b764507e3c0a03f41e5a;hp=5fe77df0018693d3f872ae3c802f6df737f26ec1;hpb=8871e73fdbde07d0a41393f7ee30787b65387b36;p=powerpc.git diff --git a/net/atm/mpc.c b/net/atm/mpc.c index 5fe77df001..00704661e8 100644 --- a/net/atm/mpc.c +++ b/net/atm/mpc.c @@ -25,7 +25,6 @@ #include #include /* Modular too */ -#include #include #include "lec.h" @@ -259,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;