]> git.baikalelectronics.ru Git - kernel.git/commit
net: ocelot: remove "bridge" argument from ocelot_get_bridge_fwd_mask
authorVladimir Oltean <vladimir.oltean@nxp.com>
Thu, 25 Nov 2021 12:58:07 +0000 (14:58 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Nov 2021 03:32:07 +0000 (19:32 -0800)
commit0de803ef54d26d4e50e6f3746a77b5bd589d4ded
tree44f85efec242cb42076cf3f434486a3eb4b1d64c
parentfa582db49436838fceaf05df9bbb27641dc8cca5
net: ocelot: remove "bridge" argument from ocelot_get_bridge_fwd_mask

The only called takes ocelot_port->bridge and passes it as the "bridge"
argument to this function, which then compares it with
ocelot_port->bridge. This is not useful.

Instead, we would like this function to return 0 if ocelot_port->bridge
is not present, which is what this patch does.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20211125125808.2383984-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mscc/ocelot.c