]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - net/sched/sch_gred.c
Merge master.kernel.org:/pub/scm/linux/kernel/git/perex/alsa
[mv-sheeva.git] / net / sched / sch_gred.c
index 29a2dd9f30296f613123118976c963f557e899d6..18e81a8ffb012e5aab0b7b6b9d9f1d3965f803d3 100644 (file)
@@ -18,7 +18,6 @@
  *  For all the glorious comments look at include/net/red.h
  */
 
-#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/types.h>
 #include <linux/kernel.h>
@@ -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];