]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: phy: dp83867: Fix warning check for setting the internal delay
authorDan Murphy <dmurphy@ti.com>
Tue, 21 Jul 2015 17:06:45 +0000 (12:06 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jul 2015 05:29:31 +0000 (22:29 -0700)
commita46fa260f6f5e8f80a725b28e4aee5a04d1bd79e
treeddc9b4f6cba938e1383f21b90bc8c7851ccbe58c
parentbac541e46319c2dc6ff9fd5ad6df59cd38686bdb
net: phy: dp83867: Fix warning check for setting the internal delay

Fix warning: logical ‘or’ of collectively exhaustive tests is always true

Change the internal delay check from an 'or' condition to an 'and'
condition.

Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83867.c