diff options
author | Jerry Ray <[email protected]> | 2022-12-09 09:35:02 -0600 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-12-12 12:53:56 -0800 |
commit | 8964916d206071b058c6351f88b1966bd58cbde0 (patch) | |
tree | c6a85173b89f4ec47c9af4136fe4a5b1f34cdf2e /tools/perf/scripts/python/compaction-times.py | |
parent | f8ab263d4d48e6dab752029bf562f20a2ee630ed (diff) |
net: lan9303: Fix read error execution path
This patch fixes an issue where a read failure of a port statistic counter
will return unknown results. While it is highly unlikely the read will
ever fail, it is much cleaner to return a zero for the stat count.
Fixes: a1292595e006 ("net: dsa: add new DSA switch driver for the SMSC-LAN9303")
Signed-off-by: Jerry Ray <[email protected]>
Reviewed-by: Vladimir Oltean <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions