diff options
| author | Colin Ian King <colin.king@canonical.com> | 2021-06-09 20:17:48 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2021-06-10 01:32:08 +0300 |
| commit | f25247d88708ff0666573541923a7339845403de (patch) | |
| tree | 63b57b71ca26fa1421f103862b2aa91f159f2363 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 345502af4e42cef57782118520c3c326b55f1071 (diff) | |
| download | linux-f25247d88708ff0666573541923a7339845403de.tar.xz | |
net: phy: realtek: net: Fix less than zero comparison of a u16
The comparisons of the u16 values priv->phycr1 and priv->phycr2 to less
than zero always false because they are unsigned. Fix this by using an
int for the assignment and less than zero check.
Addresses-Coverity: ("Unsigned compared against 0")
Fixes: 0a4355c2b7f8 ("net: phy: realtek: add dt property to disable CLKOUT clock")
Fixes: d90db36a9e74 ("net: phy: realtek: add dt property to enable ALDPS mode")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
