]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: remove gratuitous use of dsa_is_{user,dsa,cpu}_port
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 20 Oct 2021 17:49:52 +0000 (20:49 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Oct 2021 11:44:07 +0000 (12:44 +0100)
commitb9757dd5a002a5470c2482da0147418c7a539dd0
treec419607239de1a1da4c83de374c839d0c030d0b6
parent384ec1215a79654b219e19d339d378c1f44c4505
net: dsa: remove gratuitous use of dsa_is_{user,dsa,cpu}_port

Find the occurrences of dsa_is_{user,dsa,cpu}_port where a struct
dsa_port *dp was already available in the function scope, and replace
them with the dsa_port_is_{user,dsa,cpu} equivalent function which uses
that dp directly and does not perform another hidden dsa_to_port().

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/port.c