aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/et131x/et1310_rx.c
diff options
context:
space:
mode:
authorMark Einon <mark.einon@gmail.com>2011-08-29 18:42:39 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-08-29 11:20:10 -0700
commit694bd60383318ebb19b94303781456739ad579b2 (patch)
treeec8b2b7ebfca100ae7d53b235636edeaeb266c2b /drivers/staging/et131x/et1310_rx.c
parent4a334d898a5cdbbe6d7a923a5106526ea82a9ffc (diff)
staging: et131x: Remove redundant replica loopback code
A mechanism used to set the phy in loopback mode is not present in the driver, making associated checks and variables redundant. Removing them. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/et131x/et1310_rx.c')
-rw-r--r--drivers/staging/et131x/et1310_rx.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/staging/et131x/et1310_rx.c b/drivers/staging/et131x/et1310_rx.c
index e6458dbef93..f50420c582a 100644
--- a/drivers/staging/et131x/et1310_rx.c
+++ b/drivers/staging/et131x/et1310_rx.c
@@ -988,17 +988,6 @@ static struct rfd *nic_rx_pkts(struct et131x_adapter *adapter)
}
if (len) {
- if (adapter->replica_phy_loopbk == 1) {
- buf = rx_local->fbr[ring_index]->virt[buff_index];
-
- if (memcmp(&buf[6], adapter->addr, ETH_ALEN) == 0) {
- if (memcmp(&buf[42], "Replica packet",
- ETH_HLEN)) {
- adapter->replica_phy_loopbk_passfail = 1;
- }
- }
- }
-
/* Determine if this is a multicast packet coming in */
if ((word0 & ALCATEL_MULTICAST_PKT) &&
!(word0 & ALCATEL_BROADCAST_PKT)) {