summaryrefslogtreecommitdiffstats
path: root/net/dsa/legacy.c
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>2017-06-01 16:07:12 -0400
committerDavid S. Miller <davem@davemloft.net>2017-06-01 17:34:56 -0400
commit02f840cbc9fa9ee147d882edb96b203999c3ac62 (patch)
treeed1c6129025a0046feffba597036cbd0b73b99be /net/dsa/legacy.c
parent73a7ece8f70c955464080e434b5324bcdfdcb1b1 (diff)
downloadop-kernel-dev-02f840cbc9fa9ee147d882edb96b203999c3ac62.zip
op-kernel-dev-02f840cbc9fa9ee147d882edb96b203999c3ac62.tar.gz
net: dsa: do not cast dst
dsa_ptr is not a void pointer anymore since Nov 2011, as of cf50dcc24f82 ("dsa: Change dsa_uses_{dsa, trailer}_tags() into inline functions"), but an explicit dsa_switch_tree pointer, thus remove the (void *) cast. Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/legacy.c')
-rw-r--r--net/dsa/legacy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/legacy.c b/net/dsa/legacy.c
index ac4379b..d70a1a7 100644
--- a/net/dsa/legacy.c
+++ b/net/dsa/legacy.c
@@ -651,7 +651,7 @@ static int dsa_setup_dst(struct dsa_switch_tree *dst, struct net_device *dev,
* sent to the tag format's receive function.
*/
wmb();
- dev->dsa_ptr = (void *)dst;
+ dev->dsa_ptr = dst;
return 0;
}
OpenPOWER on IntegriCloud