Colin Ian King 9d15e5cc8c 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>
2017-06-05 17:45:51 -04:00
..
2017-05-30 12:42:27 -04:00
2017-03-24 15:33:32 +01:00
2017-05-30 12:42:27 -04:00
2017-05-30 12:42:27 -04:00
2017-06-02 14:22:31 -04:00