diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-06-05 19:08:04 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-05 17:45:51 -0400 |
commit | 9d15e5cc8cb68326f7f89b76e04c834fe8e1a2db (patch) | |
tree | fb6dfea8aeb0823f2d3b498eb1e6aadfaa835d6b /net/switchdev/switchdev.c | |
parent | 2f878491b3674b7c61d9b214aec35c66e5946da9 (diff) | |
download | linux-9d15e5cc8cb68326f7f89b76e04c834fe8e1a2db.tar.gz linux-9d15e5cc8cb68326f7f89b76e04c834fe8e1a2db.tar.bz2 linux-9d15e5cc8cb68326f7f89b76e04c834fe8e1a2db.zip |
mdio: mux: fix an incorrect less than zero error check using a u32
The u32 variable v is being checked to see if an error return is
less than zero and this check has no effect because it is unsigned.
Fix this by making v and int (this also matches the type of
cb->bus_number which is assigned to the value in v).
Detected by CoverityScan, CID#1440454 ("Unsigned compared against zero")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions