[NET]: Conversions from kmalloc+memset to k(z|c)alloc.
[deliverable/linux.git] / net / ipv4 / ipvs / ip_vs_est.c
index 4c1940381ba0f38311c78e1d9f22407d2fe4d343..7d68b80c4c19534679c29c400a35fdd5a00c9295 100644 (file)
@@ -123,11 +123,10 @@ int ip_vs_new_estimator(struct ip_vs_stats *stats)
 {
        struct ip_vs_estimator *est;
 
-       est = kmalloc(sizeof(*est), GFP_KERNEL);
+       est = kzalloc(sizeof(*est), GFP_KERNEL);
        if (est == NULL)
                return -ENOMEM;
 
-       memset(est, 0, sizeof(*est));
        est->stats = stats;
        est->last_conns = stats->conns;
        est->cps = stats->cps<<10;
This page took 0.04584 seconds and 5 git commands to generate.