diff options
-rw-r--r-- | net/sched/sch_gred.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/sched/sch_gred.c b/net/sched/sch_gred.c index fca73cdf44d..e19d4ebfea1 100644 --- a/net/sched/sch_gred.c +++ b/net/sched/sch_gred.c @@ -102,9 +102,8 @@ static inline int gred_wred_mode_check(struct Qdisc *sch) if (q == NULL) continue; - for (n = 0; n < table->DPs; n++) - if (table->tab[n] && table->tab[n] != q && - table->tab[n]->prio == q->prio) + for (n = i + 1; n < table->DPs; n++) + if (table->tab[n] && table->tab[n]->prio == q->prio) return 1; } |