summaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2007-02-09 23:24:59 +0900
committerDavid S. Miller <davem@sunset.davemloft.net>2007-02-10 23:19:51 -0800
commit56d6c3d7a7963ee2a480232e5ef6a2f31635e80e (patch)
treec341bc81cee9c6fafc3d998263da875e24a56878 /net/lapb/lapb_subr.c
parent8ff24541d9f80b9161022588b4435a9b54aec2e6 (diff)
downloadop-kernel-dev-56d6c3d7a7963ee2a480232e5ef6a2f31635e80e.zip
op-kernel-dev-56d6c3d7a7963ee2a480232e5ef6a2f31635e80e.tar.gz
[NET] LAPB: Fix whitespace errors.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/lapb/lapb_subr.c')
-rw-r--r--net/lapb/lapb_subr.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/net/lapb/lapb_subr.c b/net/lapb/lapb_subr.c
index 8b5eefd..b8739cf 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)
*/
if (lapb->va != nr)
while (skb_peek(&lapb->ack_queue) && lapb->va != nr) {
- skb = skb_dequeue(&lapb->ack_queue);
+ skb = skb_dequeue(&lapb->ack_queue);
kfree_skb(skb);
lapb->va = (lapb->va + 1) % modulus;
}
@@ -67,7 +67,7 @@ void lapb_frames_acked(struct lapb_cb *lapb, unsigned short nr)
void lapb_requeue_frames(struct lapb_cb *lapb)
{
- struct sk_buff *skb, *skb_prev = NULL;
+ struct sk_buff *skb, *skb_prev = NULL;
/*
* 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)
{
unsigned short vc = lapb->va;
int modulus;
-
+
modulus = (lapb->mode & LAPB_EXTENDED) ? LAPB_EMODULUS : LAPB_SMODULUS;
while (vc != lapb->vs) {
@@ -99,7 +99,7 @@ int lapb_validate_nr(struct lapb_cb *lapb, unsigned short nr)
return 1;
vc = (vc + 1) % modulus;
}
-
+
return nr == lapb->vs;
}
@@ -149,7 +149,7 @@ int lapb_decode(struct lapb_cb *lapb, struct sk_buff *skb,
frame->cr = LAPB_RESPONSE;
}
}
-
+
skb_pull(skb, 1);
if (lapb->mode & LAPB_EXTENDED) {
@@ -220,9 +220,9 @@ int lapb_decode(struct lapb_cb *lapb, struct sk_buff *skb,
return 0;
}
-/*
+/*
* This routine is called when the HDLC layer internally generates a
- * command or response for the remote machine ( eg. RR, UA etc. ).
+ * command or response for the remote machine ( eg. RR, UA etc. ).
* Only supervisory or unnumbered frames are processed, FRMRs are handled
* by lapb_transmit_frmr below.
*/
@@ -259,7 +259,7 @@ void lapb_send_control(struct lapb_cb *lapb, int frametype,
lapb_transmit_buffer(lapb, skb, type);
}
-/*
+/*
* This routine generates FRMRs based on information previously stored in
* the LAPB control block.
*/
OpenPOWER on IntegriCloud