diff options
Diffstat (limited to 'net/lapb/lapb_subr.c')
-rw-r--r-- | net/lapb/lapb_subr.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/net/lapb/lapb_subr.c b/net/lapb/lapb_subr.c index 8b5eefd70f03..b8739cf9156d 100644 --- a/net/lapb/lapb_subr.c +++ b/net/lapb/lapb_subr.c | |||
@@ -59,7 +59,7 @@ void lapb_frames_acked(struct lapb_cb *lapb, unsigned short nr) | |||
59 | */ | 59 | */ |
60 | if (lapb->va != nr) | 60 | if (lapb->va != nr) |
61 | while (skb_peek(&lapb->ack_queue) && lapb->va != nr) { | 61 | while (skb_peek(&lapb->ack_queue) && lapb->va != nr) { |
62 | skb = skb_dequeue(&lapb->ack_queue); | 62 | skb = skb_dequeue(&lapb->ack_queue); |
63 | kfree_skb(skb); | 63 | kfree_skb(skb); |
64 | lapb->va = (lapb->va + 1) % modulus; | 64 | lapb->va = (lapb->va + 1) % modulus; |
65 | } | 65 | } |
@@ -67,7 +67,7 @@ void lapb_frames_acked(struct lapb_cb *lapb, unsigned short nr) | |||
67 | 67 | ||
68 | void lapb_requeue_frames(struct lapb_cb *lapb) | 68 | void lapb_requeue_frames(struct lapb_cb *lapb) |
69 | { | 69 | { |
70 | struct sk_buff *skb, *skb_prev = NULL; | 70 | struct sk_buff *skb, *skb_prev = NULL; |
71 | 71 | ||
72 | /* | 72 | /* |
73 | * Requeue all the un-ack-ed frames on the output queue to be picked | 73 | * Requeue all the un-ack-ed frames on the output queue to be picked |
@@ -91,7 +91,7 @@ int lapb_validate_nr(struct lapb_cb *lapb, unsigned short nr) | |||
91 | { | 91 | { |
92 | unsigned short vc = lapb->va; | 92 | unsigned short vc = lapb->va; |
93 | int modulus; | 93 | int modulus; |
94 | 94 | ||
95 | modulus = (lapb->mode & LAPB_EXTENDED) ? LAPB_EMODULUS : LAPB_SMODULUS; | 95 | modulus = (lapb->mode & LAPB_EXTENDED) ? LAPB_EMODULUS : LAPB_SMODULUS; |
96 | 96 | ||
97 | while (vc != lapb->vs) { | 97 | while (vc != lapb->vs) { |
@@ -99,7 +99,7 @@ int lapb_validate_nr(struct lapb_cb *lapb, unsigned short nr) | |||
99 | return 1; | 99 | return 1; |
100 | vc = (vc + 1) % modulus; | 100 | vc = (vc + 1) % modulus; |
101 | } | 101 | } |
102 | 102 | ||
103 | return nr == lapb->vs; | 103 | return nr == lapb->vs; |
104 | } | 104 | } |
105 | 105 | ||
@@ -149,7 +149,7 @@ int lapb_decode(struct lapb_cb *lapb, struct sk_buff *skb, | |||
149 | frame->cr = LAPB_RESPONSE; | 149 | frame->cr = LAPB_RESPONSE; |
150 | } | 150 | } |
151 | } | 151 | } |
152 | 152 | ||
153 | skb_pull(skb, 1); | 153 | skb_pull(skb, 1); |
154 | 154 | ||
155 | if (lapb->mode & LAPB_EXTENDED) { | 155 | if (lapb->mode & LAPB_EXTENDED) { |
@@ -220,9 +220,9 @@ int lapb_decode(struct lapb_cb *lapb, struct sk_buff *skb, | |||
220 | return 0; | 220 | return 0; |
221 | } | 221 | } |
222 | 222 | ||
223 | /* | 223 | /* |
224 | * This routine is called when the HDLC layer internally generates a | 224 | * This routine is called when the HDLC layer internally generates a |
225 | * command or response for the remote machine ( eg. RR, UA etc. ). | 225 | * command or response for the remote machine ( eg. RR, UA etc. ). |
226 | * Only supervisory or unnumbered frames are processed, FRMRs are handled | 226 | * Only supervisory or unnumbered frames are processed, FRMRs are handled |
227 | * by lapb_transmit_frmr below. | 227 | * by lapb_transmit_frmr below. |
228 | */ | 228 | */ |
@@ -259,7 +259,7 @@ void lapb_send_control(struct lapb_cb *lapb, int frametype, | |||
259 | lapb_transmit_buffer(lapb, skb, type); | 259 | lapb_transmit_buffer(lapb, skb, type); |
260 | } | 260 | } |
261 | 261 | ||
262 | /* | 262 | /* |
263 | * This routine generates FRMRs based on information previously stored in | 263 | * This routine generates FRMRs based on information previously stored in |
264 | * the LAPB control block. | 264 | * the LAPB control block. |
265 | */ | 265 | */ |