diff options
author | Krzysztof Hałasa <khc@pm.waw.pl> | 2008-07-01 09:28:10 -0400 |
---|---|---|
committer | Krzysztof Hałasa <khc@pm.waw.pl> | 2008-07-23 17:00:31 -0400 |
commit | efa415840d462caf30002d259db20338b546a94b (patch) | |
tree | cb2e2265146e1b20041707b7577391dcd1c1bc2f /drivers/net/wan/syncppp.c | |
parent | 86f584f08767160a745a50ed675e12b8f8bfbf30 (diff) |
Remove bogus variables from syncppp.[ch]
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Diffstat (limited to 'drivers/net/wan/syncppp.c')
-rw-r--r-- | drivers/net/wan/syncppp.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/net/wan/syncppp.c b/drivers/net/wan/syncppp.c index 29b4b94e4947..327d58589e12 100644 --- a/drivers/net/wan/syncppp.c +++ b/drivers/net/wan/syncppp.c | |||
@@ -230,13 +230,6 @@ static void sppp_input (struct net_device *dev, struct sk_buff *skb) | |||
230 | skb->dev=dev; | 230 | skb->dev=dev; |
231 | skb_reset_mac_header(skb); | 231 | skb_reset_mac_header(skb); |
232 | 232 | ||
233 | if (dev->flags & IFF_RUNNING) | ||
234 | { | ||
235 | /* Count received bytes, add FCS and one flag */ | ||
236 | sp->ibytes+= skb->len + 3; | ||
237 | sp->ipkts++; | ||
238 | } | ||
239 | |||
240 | if (!pskb_may_pull(skb, PPP_HEADER_LEN)) { | 233 | if (!pskb_may_pull(skb, PPP_HEADER_LEN)) { |
241 | /* Too small packet, drop it. */ | 234 | /* Too small packet, drop it. */ |
242 | if (sp->pp_flags & PP_DEBUG) | 235 | if (sp->pp_flags & PP_DEBUG) |
@@ -832,7 +825,6 @@ static void sppp_cp_send (struct sppp *sp, u16 proto, u8 type, | |||
832 | sppp_print_bytes ((u8*) (lh+1), len); | 825 | sppp_print_bytes ((u8*) (lh+1), len); |
833 | printk (">\n"); | 826 | printk (">\n"); |
834 | } | 827 | } |
835 | sp->obytes += skb->len; | ||
836 | /* Control is high priority so it doesn't get queued behind data */ | 828 | /* Control is high priority so it doesn't get queued behind data */ |
837 | skb->priority=TC_PRIO_CONTROL; | 829 | skb->priority=TC_PRIO_CONTROL; |
838 | skb->dev = dev; | 830 | skb->dev = dev; |
@@ -875,7 +867,6 @@ static void sppp_cisco_send (struct sppp *sp, int type, u32 par1, u32 par2) | |||
875 | printk (KERN_WARNING "%s: cisco output: <%xh %xh %xh %xh %xh-%xh>\n", | 867 | printk (KERN_WARNING "%s: cisco output: <%xh %xh %xh %xh %xh-%xh>\n", |
876 | dev->name, ntohl (ch->type), ch->par1, | 868 | dev->name, ntohl (ch->type), ch->par1, |
877 | ch->par2, ch->rel, ch->time0, ch->time1); | 869 | ch->par2, ch->rel, ch->time0, ch->time1); |
878 | sp->obytes += skb->len; | ||
879 | skb->priority=TC_PRIO_CONTROL; | 870 | skb->priority=TC_PRIO_CONTROL; |
880 | skb->dev = dev; | 871 | skb->dev = dev; |
881 | skb_queue_tail(&tx_queue, skb); | 872 | skb_queue_tail(&tx_queue, skb); |