[NET]: Conversions from kmalloc+memset to k(z|c)alloc.
[deliverable/linux.git] / net / xfrm / xfrm_state.c
index 43f00fc28a3d14e724ba70af6915c73680e28d0b..0021aad5db43ccc0d0356f2f5e4e28446c8b983a 100644 (file)
@@ -194,10 +194,9 @@ struct xfrm_state *xfrm_state_alloc(void)
 {
        struct xfrm_state *x;
 
-       x = kmalloc(sizeof(struct xfrm_state), GFP_ATOMIC);
+       x = kzalloc(sizeof(struct xfrm_state), GFP_ATOMIC);
 
        if (x) {
-               memset(x, 0, sizeof(struct xfrm_state));
                atomic_set(&x->refcnt, 1);
                atomic_set(&x->tunnel_users, 0);
                INIT_LIST_HEAD(&x->bydst);
This page took 0.023556 seconds and 5 git commands to generate.