diff options
author | 2023-03-06 22:51:35 +0100 | |
---|---|---|
committer | 2023-03-07 18:19:09 -0800 | |
commit | 0194b64578e905dc8f112e641a71c306bd58ddde (patch) | |
tree | 4aa9e486cd465d80be467017f9499ddd7e9b1f3d /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next (diff) | |
download | wireguard-linux-0194b64578e905dc8f112e641a71c306bd58ddde.tar.xz wireguard-linux-0194b64578e905dc8f112e641a71c306bd58ddde.zip |
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 <hkallweit1@gmail.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/6d8274ac-4344-23b4-d9a3-cad4c39517d4@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions