Gustavo A. R. Silva e519869af3 net: phy: mscc: fix signedness bug in vsc85xx_downshift_get
Currently, the error handling for the call to function
phy_read_paged() doesn't work because *reg_val* is of
type u16 (16 bits, unsigned), which makes it impossible
for it to hold a value less than 0.

Fix this by changing the type of variable *reg_val* to int.

Addresses-Coverity-ID: 1473970 ("Unsigned compared against 0")
Fixes: 6a0bfbbe20b0 ("net: phy: mscc: migrate to phy_select/restore_page functions")
Reviewed-by: Quentin Schulz <quentin.schulz@bootlin.com>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-10-17 22:08:55 -07:00
..
2018-09-07 10:05:20 +02:00
2018-09-21 09:41:05 +02:00
2018-10-07 08:15:57 +02:00
2018-09-29 14:52:14 -07:00
2018-07-21 08:13:02 +02:00
2018-08-08 15:44:47 +10:00
2018-10-15 21:49:56 -07:00
2018-07-02 08:28:32 +02:00
2018-07-16 09:04:54 +02:00
2018-10-10 22:09:02 +02:00
2018-08-18 11:04:51 -07:00
2018-08-20 11:36:07 +02:00
2018-08-25 14:12:36 -07:00
2018-08-20 16:30:27 -07:00
2018-09-28 18:04:06 -07:00
2018-08-23 13:52:46 -07:00
2018-08-19 09:30:44 -07:00
2018-07-06 16:36:19 +02:00
2018-08-17 11:32:50 -07:00
2018-10-07 21:31:32 -07:00
2018-08-24 08:45:19 -07:00
2018-08-18 11:04:51 -07:00