From: Andrew Lunn <and...@lunn.ch> Date: Sat, 20 Feb 2016 00:35:29 +0100
> commit 2b2427d06426 ("phy: micrel: Add ethtool statistics counters") > from Dec 30, 2015, leads to the following static checker > warning: > > drivers/net/phy/micrel.c:609 kszphy_get_stat() > warn: unsigned 'val' is never less than zero. ... > The same problem exists in the Marvell driver. Fix both. > > Fixes: 2b2427d06426 ("phy: micrel: Add ethtool statistics counters") > Reported-by: Dan Carpenter <dan.carpen...@oracle.com> > Reported-by: Julia.Lawall <julia.law...@lip6.fr> > Signed-off-by: Andrew Lunn <and...@lunn.ch> Applied, thanks.