diff options
| author | Colin Ian King <[email protected]> | 2021-06-15 14:52:53 +0100 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-06-17 11:14:06 -0700 |
| commit | d356dbe23f607dc1a05eb3af887a6ea21c519cb3 (patch) | |
| tree | 0c7c7e8ade5e04fb7eacd76ecb3ddf86c5fc6e2e /scripts/gcc-plugins/cyc_complexity_plugin.c | |
| parent | 0c33795231bff5df410bd405b569c66851e92d4b (diff) | |
net: pcs: xpcs: Fix a less than zero u16 comparison error
Currently the check for the u16 variable val being less than zero is
always false because val is unsigned. Fix this by using the int
variable for the assignment and less than zero check.
Addresses-Coverity: ("Unsigned compared against 0")
Fixes: f7380bba42fd ("net: pcs: xpcs: add support for NXP SJA1110")
Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Vladimir Oltean <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions