diff options
author | Krzysztof Hałasa <khc@pm.waw.pl> | 2008-07-01 15:24:14 -0400 |
---|---|---|
committer | Krzysztof Hałasa <khc@pm.waw.pl> | 2008-07-23 17:00:38 -0400 |
commit | c36936ce4bc6d2a0d6520bd798e85abbb139c2aa (patch) | |
tree | 9dde2ac8a8a480ba9b19602254a851d67f55bae5 /drivers/net/wan | |
parent | ea966165a306ad4243b7bf62c848288c4286a8b7 (diff) |
WAN: Remove dead code from PC300 driver, part #2
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Diffstat (limited to 'drivers/net/wan')
-rw-r--r-- | drivers/net/wan/pc300.h | 8 | ||||
-rw-r--r-- | drivers/net/wan/pc300_drv.c | 6 |
2 files changed, 1 insertions, 13 deletions
diff --git a/drivers/net/wan/pc300.h b/drivers/net/wan/pc300.h index cd24ea586dba..cee799dabd97 100644 --- a/drivers/net/wan/pc300.h +++ b/drivers/net/wan/pc300.h | |||
@@ -103,13 +103,9 @@ | |||
103 | #include "hd64572.h" | 103 | #include "hd64572.h" |
104 | #include "pc300-falc-lh.h" | 104 | #include "pc300-falc-lh.h" |
105 | 105 | ||
106 | #ifndef CY_TYPES | ||
107 | #define CY_TYPES | ||
108 | typedef __u64 ucdouble; /* 64 bits, unsigned */ | ||
109 | typedef __u32 uclong; /* 32 bits, unsigned */ | 106 | typedef __u32 uclong; /* 32 bits, unsigned */ |
110 | typedef __u16 ucshort; /* 16 bits, unsigned */ | 107 | typedef __u16 ucshort; /* 16 bits, unsigned */ |
111 | typedef __u8 ucchar; /* 8 bits, unsigned */ | 108 | typedef __u8 ucchar; /* 8 bits, unsigned */ |
112 | #endif /* CY_TYPES */ | ||
113 | 109 | ||
114 | #define PC300_PROTO_MLPPP 1 | 110 | #define PC300_PROTO_MLPPP 1 |
115 | 111 | ||
@@ -345,7 +341,6 @@ typedef struct pc300chconf { | |||
345 | raw_hdlc_proto proto_settings; /* Encoding, parity (CRC) */ | 341 | raw_hdlc_proto proto_settings; /* Encoding, parity (CRC) */ |
346 | uclong media; /* HW media (RS232, V.35, etc.) */ | 342 | uclong media; /* HW media (RS232, V.35, etc.) */ |
347 | uclong proto; /* Protocol (PPP, X.25, etc.) */ | 343 | uclong proto; /* Protocol (PPP, X.25, etc.) */ |
348 | ucchar monitor; /* Monitor mode (0 = off, !0 = on) */ | ||
349 | 344 | ||
350 | /* TE-specific parameters */ | 345 | /* TE-specific parameters */ |
351 | ucchar lcode; /* Line Code (AMI, B8ZS, etc.) */ | 346 | ucchar lcode; /* Line Code (AMI, B8ZS, etc.) */ |
@@ -440,9 +435,6 @@ enum pc300_loopback_cmds { | |||
440 | #define PC300_DEF_MTU 1600 | 435 | #define PC300_DEF_MTU 1600 |
441 | 436 | ||
442 | /* Function Prototypes */ | 437 | /* Function Prototypes */ |
443 | void tx_dma_start(pc300_t *, int); | ||
444 | int cpc_open(struct net_device *dev); | 438 | int cpc_open(struct net_device *dev); |
445 | int cpc_set_media(hdlc_device *, int); | ||
446 | 439 | ||
447 | #endif /* _PC300_H */ | 440 | #endif /* _PC300_H */ |
448 | |||
diff --git a/drivers/net/wan/pc300_drv.c b/drivers/net/wan/pc300_drv.c index 3226a745571a..65c40cd4a08f 100644 --- a/drivers/net/wan/pc300_drv.c +++ b/drivers/net/wan/pc300_drv.c | |||
@@ -1805,11 +1805,7 @@ static int cpc_queue_xmit(struct sk_buff *skb, struct net_device *dev) | |||
1805 | int i; | 1805 | int i; |
1806 | #endif | 1806 | #endif |
1807 | 1807 | ||
1808 | if (chan->conf.monitor) { | 1808 | if (!netif_carrier_ok(dev)) { |
1809 | /* In monitor mode no Tx is done: ignore packet */ | ||
1810 | dev_kfree_skb(skb); | ||
1811 | return 0; | ||
1812 | } else if (!netif_carrier_ok(dev)) { | ||
1813 | /* DCD must be OFF: drop packet */ | 1809 | /* DCD must be OFF: drop packet */ |
1814 | dev_kfree_skb(skb); | 1810 | dev_kfree_skb(skb); |
1815 | dev->stats.tx_errors++; | 1811 | dev->stats.tx_errors++; |