r8169:Fix typo in setting RTL8168H PHY parameter
authorChun-Hao Lin <hau@realtek.com>
Thu, 24 Dec 2015 13:15:26 +0000 (21:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Dec 2015 05:19:37 +0000 (00:19 -0500)
In function "rtl8168h_2_hw_phy_config", there is a typo in setting
RTL8168H PHY parameter.

Signed-off-by: Chunhao Lin <hau@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c

index 79ef799f88ab1fc2518736163c5674aec360c065..11cc32b1755e9b4c7dc09b7a9270e4c29c6712fb 100644 (file)
@@ -3947,7 +3947,7 @@ static void rtl8168h_2_hw_phy_config(struct rtl8169_private *tp)
        data = (ioffset_p3<<12)|(ioffset_p2<<8)|(ioffset_p1<<4)|(ioffset_p0);
 
        if ((ioffset_p3 != 0x0f) || (ioffset_p2 != 0x0f) ||
-           (ioffset_p1 != 0x0f) || (ioffset_p0 == 0x0f)) {
+           (ioffset_p1 != 0x0f) || (ioffset_p0 != 0x0f)) {
                rtl_writephy(tp, 0x1f, 0x0bcf);
                rtl_writephy(tp, 0x16, data);
                rtl_writephy(tp, 0x1f, 0x0000);