Message ID | 20200507143430.50507-1-colin.king@canonical.com |
---|---|
State | New |
Headers | show |
Series | [next] net: phy: fix less than zero comparison with unsigned variable val | expand |
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index 83fc8e1b5793..c3a107cf578e 100644 --- a/drivers/net/phy/phy_device.c +++ b/drivers/net/phy/phy_device.c @@ -1948,7 +1948,7 @@ static int genphy_setup_master_slave(struct phy_device *phydev) static int genphy_read_master_slave(struct phy_device *phydev) { int cfg, state; - u16 val; + int val; if (!phydev->is_gigabit_capable) { phydev->master_slave_get = MASTER_SLAVE_CFG_UNSUPPORTED;