From: Ben Hutchings Date: Fri, 27 Feb 2009 13:06:12 +0000 (+0000) Subject: sfc: Fix test for MDIO read failure X-Git-Tag: v2.6.30-rc1~662^2~421 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b065f91faf56f5445ba45878ce6c55ea6388bb3;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed