Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: sched: kill dead code in sch_choke.c

It looks like this has never been used at all.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Phil Sutter and committed by
David S. Miller
2a4f4176 37b8e1ca

-59
-59
net/sched/sch_choke.c
··· 553 553 choke_free(q->tab); 554 554 } 555 555 556 - static struct Qdisc *choke_leaf(struct Qdisc *sch, unsigned long arg) 557 - { 558 - return NULL; 559 - } 560 - 561 - static unsigned long choke_get(struct Qdisc *sch, u32 classid) 562 - { 563 - return 0; 564 - } 565 - 566 - static void choke_put(struct Qdisc *q, unsigned long cl) 567 - { 568 - } 569 - 570 - static unsigned long choke_bind(struct Qdisc *sch, unsigned long parent, 571 - u32 classid) 572 - { 573 - return 0; 574 - } 575 - 576 - static struct tcf_proto __rcu **choke_find_tcf(struct Qdisc *sch, 577 - unsigned long cl) 578 - { 579 - struct choke_sched_data *q = qdisc_priv(sch); 580 - 581 - if (cl) 582 - return NULL; 583 - return &q->filter_list; 584 - } 585 - 586 - static int choke_dump_class(struct Qdisc *sch, unsigned long cl, 587 - struct sk_buff *skb, struct tcmsg *tcm) 588 - { 589 - tcm->tcm_handle |= TC_H_MIN(cl); 590 - return 0; 591 - } 592 - 593 - static void choke_walk(struct Qdisc *sch, struct qdisc_walker *arg) 594 - { 595 - if (!arg->stop) { 596 - if (arg->fn(sch, 1, arg) < 0) { 597 - arg->stop = 1; 598 - return; 599 - } 600 - arg->count++; 601 - } 602 - } 603 - 604 - static const struct Qdisc_class_ops choke_class_ops = { 605 - .leaf = choke_leaf, 606 - .get = choke_get, 607 - .put = choke_put, 608 - .tcf_chain = choke_find_tcf, 609 - .bind_tcf = choke_bind, 610 - .unbind_tcf = choke_put, 611 - .dump = choke_dump_class, 612 - .walk = choke_walk, 613 - }; 614 - 615 556 static struct sk_buff *choke_peek_head(struct Qdisc *sch) 616 557 { 617 558 struct choke_sched_data *q = qdisc_priv(sch);