]> err.no Git - linux-2.6/blobdiff - net/sched/sch_prio.c
Remove obsolete #include <linux/config.h>
[linux-2.6] / net / sched / sch_prio.c
index 1641db33a994020f557cee3d42ab0cc5505a2743..a5fa03c0c19b6c8167f2e68a4e4d3b052c0b0bcc 100644 (file)
@@ -11,7 +11,6 @@
  *              Init --  EINVAL when opt undefined
  */
 
-#include <linux/config.h>
 #include <linux/module.h>
 #include <asm/uaccess.h>
 #include <asm/system.h>
@@ -165,7 +164,7 @@ static unsigned int prio_drop(struct Qdisc* sch)
 
        for (prio = q->bands-1; prio >= 0; prio--) {
                qdisc = q->queues[prio];
-               if ((len = qdisc->ops->drop(qdisc)) != 0) {
+               if (qdisc->ops->drop && (len = qdisc->ops->drop(qdisc)) != 0) {
                        sch->q.qlen--;
                        return len;
                }