diff options
| author | Florian Westphal <[email protected]> | 2017-08-17 14:47:00 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-08-21 17:39:11 +0000 |
| commit | 89e49506bc62520f93e64a278293444319a6aebb (patch) | |
| tree | 48ae52027755af0a2f3424f7d940c2e09c092275 /net/dsa/dsa.c | |
| parent | Merge branch 'bpf-mips-jit-improvements' (diff) | |
| download | kernel-89e49506bc62520f93e64a278293444319a6aebb.tar.gz kernel-89e49506bc62520f93e64a278293444319a6aebb.zip | |
dsa: remove unused net_device arg from handlers
compile tested only, but saw no warnings/errors with
allmodconfig build.
Signed-off-by: Florian Westphal <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/dsa/dsa.c')
| -rw-r--r-- | net/dsa/dsa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index 99e38af85fc5..03c58b0eb082 100644 --- a/net/dsa/dsa.c +++ b/net/dsa/dsa.c @@ -186,7 +186,7 @@ struct net_device *dsa_dev_to_net_device(struct device *dev) EXPORT_SYMBOL_GPL(dsa_dev_to_net_device); static int dsa_switch_rcv(struct sk_buff *skb, struct net_device *dev, - struct packet_type *pt, struct net_device *orig_dev) + struct packet_type *pt, struct net_device *unused) { struct dsa_switch_tree *dst = dev->dsa_ptr; struct sk_buff *nskb = NULL; @@ -202,7 +202,7 @@ static int dsa_switch_rcv(struct sk_buff *skb, struct net_device *dev, if (!skb) return 0; - nskb = dst->rcv(skb, dev, pt, orig_dev); + nskb = dst->rcv(skb, dev, pt); if (!nskb) { kfree_skb(skb); return 0; |
