Skip to content
Commit 54830adf authored by Oleksij Rempel's avatar Oleksij Rempel Committed by Greg Kroah-Hartman
Browse files

net: dsa: microchip: ksz8_r_sta_mac_table(): Avoid using error code for empty entries



[ Upstream commit 559901b4 ]

Prepare for the next patch by ensuring that ksz8_r_sta_mac_table() does
not use error codes for empty entries. This change will enable better
handling of read/write errors in the upcoming patch.

Signed-off-by: default avatarOleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: default avatarVladimir Oltean <olteanv@gmail.com>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
Stable-dep-of: 4bdf79d6 ("net: dsa: microchip: correct KSZ8795 static MAC table access")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8a60427c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment