]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/sched/cls_rsvp.h
net_sched: remove useless NULL to tp->root
[karo-tx-linux.git] / net / sched / cls_rsvp.h
index 18a94701617869d674183136b9e69449a0473b6c..0d9d077986992926a79af6236b8840181517679d 100644 (file)
@@ -152,8 +152,6 @@ static int rsvp_classify(struct sk_buff *skb, const struct tcf_proto *tp,
                return -1;
        nhptr = ip_hdr(skb);
 #endif
-       if (unlikely(!head))
-               return -1;
 restart:
 
 #if RSVP_DST_LEN == 4
@@ -310,8 +308,6 @@ static void rsvp_destroy(struct tcf_proto *tp)
        if (data == NULL)
                return;
 
-       RCU_INIT_POINTER(tp->root, NULL);
-
        for (h1 = 0; h1 < 256; h1++) {
                struct rsvp_session *s;