diff options
author | govindarajulu.v <govindarajulu90@gmail.com> | 2013-05-16 02:24:41 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-05-16 18:19:45 -0400 |
commit | ed8a83a1f4655a31e0080a19f08d896bb29434a9 (patch) | |
tree | 6fa49210d98441a31b021f988c22dd10f3fe4e36 /drivers/net/ethernet/3com | |
parent | d6a98c9680a6f885715ce64daa5de73b33d3edd4 (diff) |
net: 3com: 3c509: remove unnecessary code
This patch removes unnecessary #if 0 code from 3c509.c
Signed-off-by: govindarajulu.v <govindarajulu90@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/3com')
-rw-r--r-- | drivers/net/ethernet/3com/3c509.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/net/ethernet/3com/3c509.c b/drivers/net/ethernet/3com/3c509.c index adb4bf5eb4b4..ede8daa68275 100644 --- a/drivers/net/ethernet/3com/3c509.c +++ b/drivers/net/ethernet/3com/3c509.c | |||
@@ -723,25 +723,6 @@ el3_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
723 | pr_debug("%s: el3_start_xmit(length = %u) called, status %4.4x.\n", | 723 | pr_debug("%s: el3_start_xmit(length = %u) called, status %4.4x.\n", |
724 | dev->name, skb->len, inw(ioaddr + EL3_STATUS)); | 724 | dev->name, skb->len, inw(ioaddr + EL3_STATUS)); |
725 | } | 725 | } |
726 | #if 0 | ||
727 | #ifndef final_version | ||
728 | { /* Error-checking code, delete someday. */ | ||
729 | ushort status = inw(ioaddr + EL3_STATUS); | ||
730 | if (status & 0x0001 && /* IRQ line active, missed one. */ | ||
731 | inw(ioaddr + EL3_STATUS) & 1) { /* Make sure. */ | ||
732 | pr_debug("%s: Missed interrupt, status then %04x now %04x" | ||
733 | " Tx %2.2x Rx %4.4x.\n", dev->name, status, | ||
734 | inw(ioaddr + EL3_STATUS), inb(ioaddr + TX_STATUS), | ||
735 | inw(ioaddr + RX_STATUS)); | ||
736 | /* Fake interrupt trigger by masking, acknowledge interrupts. */ | ||
737 | outw(SetStatusEnb | 0x00, ioaddr + EL3_CMD); | ||
738 | outw(AckIntr | IntLatch | TxAvailable | RxEarly | IntReq, | ||
739 | ioaddr + EL3_CMD); | ||
740 | outw(SetStatusEnb | 0xff, ioaddr + EL3_CMD); | ||
741 | } | ||
742 | } | ||
743 | #endif | ||
744 | #endif | ||
745 | /* | 726 | /* |
746 | * We lock the driver against other processors. Note | 727 | * We lock the driver against other processors. Note |
747 | * we don't need to lock versus the IRQ as we suspended | 728 | * we don't need to lock versus the IRQ as we suspended |