]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: do not cast dst
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Thu, 1 Jun 2017 20:07:12 +0000 (16:07 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Jun 2017 21:34:56 +0000 (17:34 -0400)
commit79bb2107031bc23391315cc9e43b61803a3d1f5d
treeed1c6129025a0046feffba597036cbd0b73b99be
parentdb78d4ab44d4cf9902943aeb723b348a571ba609
net: dsa: do not cast dst

dsa_ptr is not a void pointer anymore since Nov 2011, as of b9225c38d40c
("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>
net/dsa/dsa2.c
net/dsa/legacy.c