diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c
index 7490f3f2db8bf50a8ac2ede5339687789d45ec44..6b8627661c98e7a778623a6ae1605fefdd895d49 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);