diff options
| author | Tobias Waldekranz <tobias@waldekranz.com> | 2023-12-14 14:50:24 +0100 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2023-12-15 11:05:02 +0000 |
| commit | fc82a08ae795ee6b73fb6b50785f7be248bec7b5 (patch) | |
| tree | 73383972d47020bdf920cf8da17f1b300b8938b5 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | net: dsa: mv88e6xxx: Create API to read a single stat counter (diff) | |
| download | linux-fc82a08ae795ee6b73fb6b50785f7be248bec7b5.tar.gz linux-fc82a08ae795ee6b73fb6b50785f7be248bec7b5.zip | |
net: dsa: mv88e6xxx: Fix mv88e6352_serdes_get_stats error path
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
