Commit 56d6c3d7a7963ee2a480232e5ef6a2f31635e80e

Authored by YOSHIFUJI Hideaki
Committed by David S. Miller
1 parent 8ff24541d9

[NET] LAPB: Fix whitespace errors.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 4 changed files with 14 additions and 14 deletions Side-by-side Diff

net/lapb/lapb_iface.c
... ... @@ -14,7 +14,7 @@
14 14 * LAPB 002 Jonathan Naylor New timer architecture.
15 15 * 2000-10-29 Henner Eisen lapb_data_indication() return status.
16 16 */
17   -
  17 +
18 18 #include <linux/module.h>
19 19 #include <linux/errno.h>
20 20 #include <linux/types.h>
... ... @@ -43,7 +43,7 @@
43 43 static DEFINE_RWLOCK(lapb_list_lock);
44 44  
45 45 /*
46   - * Free an allocated lapb control block.
  46 + * Free an allocated lapb control block.
47 47 */
48 48 static void lapb_free_cb(struct lapb_cb *lapb)
49 49 {
... ... @@ -407,7 +407,7 @@
407 407 return lapb->callbacks.data_indication(lapb->dev, skb);
408 408  
409 409 kfree_skb(skb);
410   - return NET_RX_CN_HIGH; /* For now; must be != NET_RX_DROP */
  410 + return NET_RX_CN_HIGH; /* For now; must be != NET_RX_DROP */
411 411 }
412 412  
413 413 int lapb_data_transmit(struct lapb_cb *lapb, struct sk_buff *skb)
... ... @@ -34,7 +34,7 @@
34 34 #include <linux/interrupt.h>
35 35 #include <net/lapb.h>
36 36  
37   -/*
  37 +/*
38 38 * This procedure is passed a buffer descriptor for an iframe. It builds
39 39 * the rest of the control part of the frame and then writes it out.
40 40 */
... ... @@ -66,7 +66,7 @@
66 66 lapb->dev, lapb->state, poll_bit, lapb->vs, lapb->vr);
67 67 #endif
68 68  
69   - lapb_transmit_buffer(lapb, skb, LAPB_COMMAND);
  69 + lapb_transmit_buffer(lapb, skb, LAPB_COMMAND);
70 70 }
71 71  
72 72 void lapb_kick(struct lapb_cb *lapb)
net/lapb/lapb_subr.c
... ... @@ -59,7 +59,7 @@
59 59 */
60 60 if (lapb->va != nr)
61 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 63 kfree_skb(skb);
64 64 lapb->va = (lapb->va + 1) % modulus;
65 65 }
... ... @@ -67,7 +67,7 @@
67 67  
68 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 73 * Requeue all the un-ack-ed frames on the output queue to be picked
... ... @@ -91,7 +91,7 @@
91 91 {
92 92 unsigned short vc = lapb->va;
93 93 int modulus;
94   -
  94 +
95 95 modulus = (lapb->mode & LAPB_EXTENDED) ? LAPB_EMODULUS : LAPB_SMODULUS;
96 96  
97 97 while (vc != lapb->vs) {
... ... @@ -99,7 +99,7 @@
99 99 return 1;
100 100 vc = (vc + 1) % modulus;
101 101 }
102   -
  102 +
103 103 return nr == lapb->vs;
104 104 }
105 105  
... ... @@ -149,7 +149,7 @@
149 149 frame->cr = LAPB_RESPONSE;
150 150 }
151 151 }
152   -
  152 +
153 153 skb_pull(skb, 1);
154 154  
155 155 if (lapb->mode & LAPB_EXTENDED) {
156 156  
... ... @@ -220,9 +220,9 @@
220 220 return 0;
221 221 }
222 222  
223   -/*
  223 +/*
224 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 226 * Only supervisory or unnumbered frames are processed, FRMRs are handled
227 227 * by lapb_transmit_frmr below.
228 228 */
... ... @@ -259,7 +259,7 @@
259 259 lapb_transmit_buffer(lapb, skb, type);
260 260 }
261 261  
262   -/*
  262 +/*
263 263 * This routine generates FRMRs based on information previously stored in
264 264 * the LAPB control block.
265 265 */
net/lapb/lapb_timer.c
... ... @@ -101,7 +101,7 @@
101 101 /*
102 102 * Awaiting connection state, send SABM(E), up to N2 times.
103 103 */
104   - case LAPB_STATE_1:
  104 + case LAPB_STATE_1:
105 105 if (lapb->n2count == lapb->n2) {
106 106 lapb_clear_queues(lapb);
107 107 lapb->state = LAPB_STATE_0;