Re: [Patch net-next] phy: marvell/micrel: Fix Unpossible condition

2016-02-19 Thread David Miller
From: Andrew Lunn 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

[Patch net-next] phy: marvell/micrel: Fix Unpossible condition

2016-02-19 Thread Andrew Lunn
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. drivers/net/phy/micrel.c 602 static u64 kszphy_ge