net: dsa: mv88e6xxx: change default return of mv88e6xxx_port_bridge_flags
authorHans J. Schultz <netdev@kapio-technology.com>
Sun, 8 Jan 2023 09:48:47 +0000 (10:48 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 10 Jan 2023 10:58:39 +0000 (11:58 +0100)
commite06a9af067b3a6eeb1e116360f6f8bcef96a90c3
tree2f219a0f554fa527172bee982247691cd008620c
parent07445f3c7ca1cfe490353be52bda91d9e6745ef4
net: dsa: mv88e6xxx: change default return of mv88e6xxx_port_bridge_flags

The default return value -EOPNOTSUPP of mv88e6xxx_port_bridge_flags()
came from the return value of the DSA method port_egress_floods() in
commit 4f85901f0063 ("net: dsa: mv88e6xxx: add support for bridge flags"),
but the DSA API was changed in commit a8b659e7ff75 ("net: dsa: act as
passthrough for bridge port flags"), resulting in the return value
-EOPNOTSUPP not being valid anymore, and sections for new flags will not
need to set the return value to zero on success, as with the new mab flag
added in a following patch.

Signed-off-by: Hans J. Schultz <netdev@kapio-technology.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/dsa/mv88e6xxx/chip.c