broadcom: bcm54xx_shadow_read() errors ignored in bcm54xx_adjust_rxrefclk()
authorRoel Kluin <roel.kluin@gmail.com>
Sat, 19 Dec 2009 04:16:10 +0000 (20:16 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Dec 2009 04:16:10 +0000 (20:16 -0800)
If not signed read errors are ignored.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/broadcom.c

index f63c96a4ecb46b1d891ec70b225cc1affca8b51d..c13cf64095b68b457b528a36fe71532478349aa5 100644 (file)
@@ -326,7 +326,8 @@ error:
 
 static void bcm54xx_adjust_rxrefclk(struct phy_device *phydev)
 {
-       u32 val, orig;
+       u32 orig;
+       int val;
        bool clk125en = true;
 
        /* Abort if we are using an untested phy. */