projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fb53b9
)
pkt_sched: Kill set but unused variable 'protocol' in tc_classify()
author
David S. Miller
<davem@davemloft.net>
Thu, 19 May 2011 22:32:55 +0000
(18:32 -0400)
committer
David S. Miller
<davem@davemloft.net>
Thu, 19 May 2011 22:32:55 +0000
(18:32 -0400)
I checked the history and this has been like this since the
beginning of time.
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_api.c
patch
|
blob
|
history
diff --git
a/net/sched/sch_api.c
b/net/sched/sch_api.c
index 7490f3f2db8bf50a8ac2ede5339687789d45ec44..6b8627661c98e7a778623a6ae1605fefdd895d49 100644
(file)
--- 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);