All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/net/phy/dp83867.c:167: possible bad if ?
@ 2015-07-20 12:37 David Binderman
  2015-07-20 17:28 ` Florian Fainelli
  0 siblings, 1 reply; 6+ messages in thread
From: David Binderman @ 2015-07-20 12:37 UTC (permalink / raw)
  To: f.fainelli@gmail.com, netdev@vger.kernel.org

Hello there,

drivers/net/phy/dp83867.c:167:57: warning: logical ‘or’ of collectively exhaustive tests is always true [-Wlogical-op]

Source code is

    if ((phydev->interface>= PHY_INTERFACE_MODE_RGMII_ID) ||
        (phydev->interface <= PHY_INTERFACE_MODE_RGMII_RXID)) {

Maybe

    if ((phydev->interface>= PHY_INTERFACE_MODE_RGMII_ID) &&
        (phydev->interface <= PHY_INTERFACE_MODE_RGMII_RXID)) {


Regards

David Binderman

 		 	   		  

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-07-20 18:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-20 12:37 drivers/net/phy/dp83867.c:167: possible bad if ? David Binderman
2015-07-20 17:28 ` Florian Fainelli
2015-07-20 17:37   ` Dan Murphy
2015-07-20 17:40     ` Florian Fainelli
2015-07-20 17:52       ` Dan Murphy
2015-07-20 18:00         ` David Binderman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.