]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/core/gen_estimator.c
[NET]: More kzalloc conversions.
[net-next-2.6.git] / net / core / gen_estimator.c
index b07c029e8219e3fbe6493c28e560faf0de473612..3cad026764f0c9b94f9615ee22da0f9b4ed16833 100644 (file)
@@ -159,11 +159,10 @@ int gen_new_estimator(struct gnet_stats_basic *bstats,
        if (parm->interval < -2 || parm->interval > 3)
                return -EINVAL;
 
-       est = kmalloc(sizeof(*est), GFP_KERNEL);
+       est = kzalloc(sizeof(*est), GFP_KERNEL);
        if (est == NULL)
                return -ENOBUFS;
 
-       memset(est, 0, sizeof(*est));
        est->interval = parm->interval + 2;
        est->bstats = bstats;
        est->rate_est = rate_est;