Re: [PATCH net-next] net: mscc: ocelot: remove duplicate ocelot_port_dev_check

2020-10-13 Thread Jakub Kicinski
On Sun, 11 Oct 2020 12:20:41 +0300 Vladimir Oltean wrote: > A helper for checking whether a net_device belongs to mscc_ocelot > already existed and did not need to be rewritten. Use it. > > Fixes: 319e4dd11a20 ("net: mscc: ocelot: introduce conversion helpers between > port and netdev") > Signed-

[PATCH net-next] net: mscc: ocelot: remove duplicate ocelot_port_dev_check

2020-10-11 Thread Vladimir Oltean
A helper for checking whether a net_device belongs to mscc_ocelot already existed and did not need to be rewritten. Use it. Fixes: 319e4dd11a20 ("net: mscc: ocelot: introduce conversion helpers between port and netdev") Signed-off-by: Vladimir Oltean --- drivers/net/ethernet/mscc/ocelot_net.c |