]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/sched/cls_basic.c
pkt_sched: sch_htb: Break all htb_do_events() after 2 jiffies
[karo-tx-linux.git] / net / sched / cls_basic.c
index bfb4342ea88cfe982e6ac1b77a36c891f9cda575..4e2bda854119bf87391dc89a3cda8ce44810c5a0 100644 (file)
@@ -35,7 +35,7 @@ struct basic_filter
        struct list_head        link;
 };
 
-static struct tcf_ext_map basic_ext_map = {
+static const struct tcf_ext_map basic_ext_map = {
        .action = TCA_BASIC_ACT,
        .police = TCA_BASIC_POLICE
 };
@@ -102,7 +102,7 @@ static inline void basic_delete_filter(struct tcf_proto *tp,
 
 static void basic_destroy(struct tcf_proto *tp)
 {
-       struct basic_head *head = (struct basic_head *) xchg(&tp->root, NULL);
+       struct basic_head *head = tp->root;
        struct basic_filter *f, *n;
 
        list_for_each_entry_safe(f, n, &head->flist, link) {