summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorShaohui Xie <Shaohui.Xie@freescale.com>2013-04-18 07:32:44 (GMT)
committerFleming Andrew-AFLEMING <AFLEMING@freescale.com>2013-04-18 21:03:41 (GMT)
commit62db545cc2eb805108b7ac879a55a752d560f47f (patch)
tree3a183a349b24a117ca6d7797685d8765e9e18491 /drivers
parente6aa1dc6ffff3d2c3ac8c3af4208c35de90e2cc8 (diff)
downloadlinux-fsl-qoriq-62db545cc2eb805108b7ac879a55a752d560f47f.tar.xz
phy/10g: fix a logic error
The operator '!' is higher than '&', so there should be a parentheses. Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com> Change-Id: Ib734ca0bd4b4ca7376bafdf4709114cdbde485c2 Reviewed-on: http://git.am.freescale.net:8181/1495 Reviewed-by: Zang Tiefei-R61911 <tie-fei.zang@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/phy/phy_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c
index 25caad0..17abcf1 100644
--- a/drivers/net/phy/phy_device.c
+++ b/drivers/net/phy/phy_device.c
@@ -946,7 +946,7 @@ int gen10g_read_status(struct phy_device *phydev)
phydev->duplex = DUPLEX_FULL;
for (devad = 0; mmd_mask; devad++, mmd_mask = mmd_mask >> 1) {
- if (!mmd_mask & 1)
+ if (!(mmd_mask & 1))
continue;
/* Read twice because link state is latched and a