aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/chelsio/cxgb2.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2009-02-27 08:06:12 -0500
committerDavid S. Miller <davem@davemloft.net>2009-03-02 06:15:02 -0500
commit7b065f91faf56f5445ba45878ce6c55ea6388bb3 (patch)
treecc559f0dd678b604394a24c28fcbc25c0893ccad /drivers/net/chelsio/cxgb2.c
parent22ef02c23a236cb825b13f3335ff05ef5072a03d (diff)
sfc: Fix test for MDIO read failure
Commit 27dd2caca4eabe7c13a052b7456495ba75535e6a changed mdio_clause45_check_mmds() to read both DEVS0 and DEVS1 registers and to combine their values into an unsigned 32-bit mask. This made the following test for a negative (failure) value useless. Fix it to check whether either read failed. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/chelsio/cxgb2.c')
0 files changed, 0 insertions, 0 deletions