summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-05-19 18:32:55 -0400
committerDavid S. Miller <davem@davemloft.net>2011-05-19 18:32:55 -0400
commitf06cd54f555a4ceca4de39160c68c7e3da657e89 (patch)
treef05c7617954ad5c8420d4c422dda50285a6e6e36 /net
parent8fb53b959bd9e503b646a3d68c7b1759667b6a19 (diff)
downloadop-kernel-dev-f06cd54f555a4ceca4de39160c68c7e3da657e89.zip
op-kernel-dev-f06cd54f555a4ceca4de39160c68c7e3da657e89.tar.gz
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 <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/sched/sch_api.c2
1 files changed, 0 insertions, 2 deletions
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);
OpenPOWER on IntegriCloud