X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fsched%2Fsch_gred.c;fp=net%2Fsched%2Fsch_gred.c;h=18e81a8ffb012e5aab0b7b6b9d9f1d3965f803d3;hb=16c70f8c1b54b61c3b951b6fb220df250fe09b32;hp=29a2dd9f30296f613123118976c963f557e899d6;hpb=4e76c8a9fa413ccc09d3f7f664183dcce3555d57;p=linux-2.6.git diff --git a/net/sched/sch_gred.c b/net/sched/sch_gred.c index 29a2dd9f3..18e81a8ff 100644 --- a/net/sched/sch_gred.c +++ b/net/sched/sch_gred.c @@ -18,7 +18,6 @@ * For all the glorious comments look at include/net/red.h */ -#include #include #include #include @@ -407,10 +406,9 @@ static inline int gred_change_vq(struct Qdisc *sch, int dp, struct gred_sched_data *q; if (table->tab[dp] == NULL) { - table->tab[dp] = kmalloc(sizeof(*q), GFP_KERNEL); + table->tab[dp] = kzalloc(sizeof(*q), GFP_KERNEL); if (table->tab[dp] == NULL) return -ENOMEM; - memset(table->tab[dp], 0, sizeof(*q)); } q = table->tab[dp];