r8169: remove the obsolete and incorrect AMD workaround
[firefly-linux-kernel-4.4.55.git] / drivers / net / r8169.c
index 8f612371a389d8cf414517d7290ada771b51c205..80b230e6f20737f430d51cb2e3cea4f67b8791ce 100644 (file)
@@ -5203,13 +5203,6 @@ static int rtl8169_rx_interrupt(struct net_device *dev,
                        dev->stats.rx_bytes += pkt_size;
                        dev->stats.rx_packets++;
                }
-
-               /* Work around for AMD plateform. */
-               if ((desc->opts2 & cpu_to_le32(0xfffe000)) &&
-                   (tp->mac_version == RTL_GIGA_MAC_VER_05)) {
-                       desc->opts2 = 0;
-                       cur_rx++;
-               }
        }
 
        count = cur_rx - tp->cur_rx;