Skip to content

Commit

Permalink
sched: protocol only needed when CONFIG_NET_CLS_ACT is enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Hagen Paul Pfeifer <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
hgn authored and davem330 committed Feb 25, 2011
1 parent ddc3731 commit 52bc974
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/sched/sch_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 52bc974

Please sign in to comment.