acrn-kernel/drivers/net/dsa/mv88e6xxx
Tobias Waldekranz 44f6b75c09 net: dsa: mv88e6xxx: Fix mv88e6352_serdes_get_stats error path
[ Upstream commit fc82a08ae795ee6b73fb6b50785f7be248bec7b5 ]

mv88e6xxx_get_stats, which collects stats from various sources,
expects all callees to return the number of stats read. If an error
occurs, 0 should be returned.

Prevent future mishaps of this kind by updating the return type to
reflect this contract.

Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-02-05 20:12:52 +00:00
..
Kconfig
Makefile
chip.c
chip.h
devlink.c
devlink.h
global1.c
global1.h
global1_atu.c
global1_vtu.c
global2.c
global2.h
global2_avb.c
global2_scratch.c
hwtstamp.c
hwtstamp.h
phy.c
phy.h
port.c
port.h
port_hidden.c
ptp.c
ptp.h
serdes.c
serdes.h
smi.c
smi.h
trace.c
trace.h