diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2020-09-26 22:32:05 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-26 14:17:59 -0700 |
commit | 2e8cb1b3db384382c84cc5f765c821454640aac1 (patch) | |
tree | 7e40eb51a2c7b38b22283da0db28815ab626a76b /net/dsa/tag_brcm.c | |
parent | 5124197ce58b5706bb60c2ecb3b79f4dfabab6e1 (diff) | |
download | linux-stable-2e8cb1b3db384382c84cc5f765c821454640aac1.tar.gz linux-stable-2e8cb1b3db384382c84cc5f765c821454640aac1.tar.bz2 linux-stable-2e8cb1b3db384382c84cc5f765c821454640aac1.zip |
net: dsa: make the .flow_dissect tagger callback return void
There is no tagger that returns anything other than zero, so just change
the return type appropriately.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/tag_brcm.c')
-rw-r--r-- | net/dsa/tag_brcm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/dsa/tag_brcm.c b/net/dsa/tag_brcm.c index 1dab212a294f..610bc7469667 100644 --- a/net/dsa/tag_brcm.c +++ b/net/dsa/tag_brcm.c @@ -150,8 +150,8 @@ static struct sk_buff *brcm_tag_rcv_ll(struct sk_buff *skb, return skb; } -static int brcm_tag_flow_dissect(const struct sk_buff *skb, __be16 *proto, - int *offset) +static void brcm_tag_flow_dissect(const struct sk_buff *skb, __be16 *proto, + int *offset) { /* We have been called on the DSA master network device after * eth_type_trans() which pulled the Ethernet header already. @@ -168,7 +168,6 @@ static int brcm_tag_flow_dissect(const struct sk_buff *skb, __be16 *proto, */ *offset = BRCM_TAG_LEN; *proto = ((__be16 *)skb->data)[1]; - return 0; } #endif |