From: David S. Miller Date: Thu, 19 May 2011 22:32:55 +0000 (-0400) Subject: pkt_sched: Kill set but unused variable 'protocol' in tc_classify() X-Git-Tag: v3.0-rc1~377^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f06cd54f555a4ceca4de39160c68c7e3da657e89;p=platform%2Fkernel%2Flinux-exynos.git pkt_sched: Kill set but unused variable 'protocol' in tc_classify() I checked the history and this has been like this since the beginning of time. Signed-off-by: David S. Miller --- diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index 7490f3f..6b86276 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c @@ -1673,10 +1673,8 @@ int tc_classify(struct sk_buff *skb, struct tcf_proto *tp, { int err = 0; #ifdef CONFIG_NET_CLS_ACT - __be16 protocol; struct tcf_proto *otp = tp; reclassify: - protocol = skb->protocol; #endif err = tc_classify_compat(skb, tp, res);