aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorHeiner Kallweit <[email protected]>2023-03-06 22:51:35 +0100
committerJakub Kicinski <[email protected]>2023-03-07 18:19:09 -0800
commit0194b64578e905dc8f112e641a71c306bd58ddde (patch)
tree4aa9e486cd465d80be467017f9499ddd7e9b1f3d /tools/perf/scripts/python/mem-phys-addr.py
parent36e5e391a25af28dc1f4586f95d577b38ff4ed72 (diff)
net: phy: improve phy_read_poll_timeout
cond sometimes is (val & MASK) what may result in a false positive if val is a negative errno. We shouldn't evaluate cond if val < 0. This has no functional impact here, but it's not nice. Therefore switch order of the checks. Signed-off-by: Heiner Kallweit <[email protected]> Reviewed-by: Simon Horman <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions