]> git.neil.brown.name Git - history.git/commitdiff
Ingress packet scheduler: Fix compiler error when CONFIG_NET_CLS_POLICE is disabled.
authorDavid S. Miller <davem@nuts.ninka.net>
Fri, 10 May 2002 00:31:40 +0000 (17:31 -0700)
committerDavid S. Miller <davem@nuts.ninka.net>
Fri, 10 May 2002 00:31:40 +0000 (17:31 -0700)
net/sched/sch_ingress.c

index fb97b8c051611a655ec55e038581d0091413a015..7ef8543de0e5fe7e6a7d231c69d9840420964478 100644 (file)
@@ -146,8 +146,8 @@ static int ingress_enqueue(struct sk_buff *skb,struct Qdisc *sch)
         * Unlike normal "enqueue" functions, ingress_enqueue returns a
         * firewall FW_* code.
         */
-       switch (result) {
 #ifdef CONFIG_NET_CLS_POLICE
+       switch (result) {
                case TC_POLICE_SHOT:
                        result = NF_DROP;
                        sch->stats.drops++;
@@ -160,7 +160,7 @@ static int ingress_enqueue(struct sk_buff *skb,struct Qdisc *sch)
                        sch->stats.bytes += skb->len;
                        result = NF_ACCEPT;
                        break;
-       }
+       };
 #else
        sch->stats.packets++;
        sch->stats.bytes += skb->len;