aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_gred.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sched/sch_gred.c')
-rw-r--r--net/sched/sch_gred.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/net/sched/sch_gred.c b/net/sched/sch_gred.c
index a545532be2c4..897e6df81b1f 100644
--- a/net/sched/sch_gred.c
+++ b/net/sched/sch_gred.c
@@ -492,15 +492,6 @@ static int gred_change(struct Qdisc *sch, struct rtattr *opt)
492 if (err < 0) 492 if (err < 0)
493 goto errout_locked; 493 goto errout_locked;
494 494
495 if (table->tab[table->def] == NULL) {
496 if (gred_rio_mode(table))
497 prio = table->tab[ctl->DP]->prio;
498
499 err = gred_change_vq(sch, table->def, ctl, prio, stab);
500 if (err < 0)
501 goto errout_locked;
502 }
503
504 if (gred_rio_mode(table)) { 495 if (gred_rio_mode(table)) {
505 gred_disable_wred_mode(table); 496 gred_disable_wred_mode(table);
506 if (gred_wred_mode_check(sch)) 497 if (gred_wred_mode_check(sch))