diff options
author | Jan Kiszka <jan.kiszka@web.de> | 2010-02-08 05:12:39 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-16 19:01:33 -0500 |
commit | 68d7347b280b4c1f8253c0676a520fb754f213c7 (patch) | |
tree | c3359eea68463e208f28b10af13a79f792c71a64 | |
parent | 42792713f7f2664cf07501e1244d6da33a73ffc1 (diff) |
CAPI: Drop capiminor's unused inbytes counter
The inbytes counter was only updated but never read.
Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/isdn/capi/capi.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/isdn/capi/capi.c b/drivers/isdn/capi/capi.c index 08d5a8aa2fe..be85c8c1e8b 100644 --- a/drivers/isdn/capi/capi.c +++ b/drivers/isdn/capi/capi.c | |||
@@ -98,7 +98,6 @@ struct capiminor { | |||
98 | struct sk_buff *ttyskb; | 98 | struct sk_buff *ttyskb; |
99 | 99 | ||
100 | struct sk_buff_head inqueue; | 100 | struct sk_buff_head inqueue; |
101 | int inbytes; | ||
102 | struct sk_buff_head outqueue; | 101 | struct sk_buff_head outqueue; |
103 | int outbytes; | 102 | int outbytes; |
104 | 103 | ||
@@ -520,15 +519,12 @@ deref_tty: | |||
520 | static void handle_minor_recv(struct capiminor *mp) | 519 | static void handle_minor_recv(struct capiminor *mp) |
521 | { | 520 | { |
522 | struct sk_buff *skb; | 521 | struct sk_buff *skb; |
523 | while ((skb = skb_dequeue(&mp->inqueue)) != NULL) { | 522 | |
524 | unsigned int len = skb->len; | 523 | while ((skb = skb_dequeue(&mp->inqueue)) != NULL) |
525 | mp->inbytes -= len; | ||
526 | if (handle_recv_skb(mp, skb) < 0) { | 524 | if (handle_recv_skb(mp, skb) < 0) { |
527 | skb_queue_head(&mp->inqueue, skb); | 525 | skb_queue_head(&mp->inqueue, skb); |
528 | mp->inbytes += len; | ||
529 | return; | 526 | return; |
530 | } | 527 | } |
531 | } | ||
532 | } | 528 | } |
533 | 529 | ||
534 | static int handle_minor_send(struct capiminor *mp) | 530 | static int handle_minor_send(struct capiminor *mp) |
@@ -659,7 +655,7 @@ static void capi_recv_message(struct capi20_appl *ap, struct sk_buff *skb) | |||
659 | datahandle, skb->len-CAPIMSG_LEN(skb->data)); | 655 | datahandle, skb->len-CAPIMSG_LEN(skb->data)); |
660 | #endif | 656 | #endif |
661 | skb_queue_tail(&mp->inqueue, skb); | 657 | skb_queue_tail(&mp->inqueue, skb); |
662 | mp->inbytes += skb->len; | 658 | |
663 | handle_minor_recv(mp); | 659 | handle_minor_recv(mp); |
664 | 660 | ||
665 | } else if (CAPIMSG_SUBCOMMAND(skb->data) == CAPI_CONF) { | 661 | } else if (CAPIMSG_SUBCOMMAND(skb->data) == CAPI_CONF) { |