From: Hagen Paul Pfeifer Date: Fri, 25 Feb 2011 05:45:21 +0000 (+0000) Subject: sched: protocol only needed when CONFIG_NET_CLS_ACT is enabled X-Git-Tag: firefly_0821_release~7613^2~2196^2~223 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=52bc97470e22e67f11b054e51a31eee100ef6867;p=firefly-linux-kernel-4.4.55.git sched: protocol only needed when CONFIG_NET_CLS_ACT is enabled Signed-off-by: Hagen Paul Pfeifer Signed-off-by: David S. Miller --- diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index 150741579408..7490f3f2db8b 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c @@ -1672,12 +1672,12 @@ int tc_classify(struct sk_buff *skb, struct tcf_proto *tp, struct tcf_result *res) { int err = 0; - __be16 protocol; #ifdef CONFIG_NET_CLS_ACT + __be16 protocol; struct tcf_proto *otp = tp; reclassify: -#endif protocol = skb->protocol; +#endif err = tc_classify_compat(skb, tp, res); #ifdef CONFIG_NET_CLS_ACT