Skip to content

Commit

Permalink
[NET] LAPB: Fix whitespace errors.
Browse files Browse the repository at this point in the history
Signed-off-by: YOSHIFUJI Hideaki <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
yoshfuji authored and David S. Miller committed Feb 11, 2007
1 parent 8ff2454 commit 56d6c3d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions net/lapb/lapb_iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* LAPB 002 Jonathan Naylor New timer architecture.
* 2000-10-29 Henner Eisen lapb_data_indication() return status.
*/

#include <linux/module.h>
#include <linux/errno.h>
#include <linux/types.h>
Expand Down Expand Up @@ -43,7 +43,7 @@ static struct list_head lapb_list = LIST_HEAD_INIT(lapb_list);
static DEFINE_RWLOCK(lapb_list_lock);

/*
* Free an allocated lapb control block.
* Free an allocated lapb control block.
*/
static void lapb_free_cb(struct lapb_cb *lapb)
{
Expand Down Expand Up @@ -407,7 +407,7 @@ int lapb_data_indication(struct lapb_cb *lapb, struct sk_buff *skb)
return lapb->callbacks.data_indication(lapb->dev, skb);

kfree_skb(skb);
return NET_RX_CN_HIGH; /* For now; must be != NET_RX_DROP */
return NET_RX_CN_HIGH; /* For now; must be != NET_RX_DROP */
}

int lapb_data_transmit(struct lapb_cb *lapb, struct sk_buff *skb)
Expand Down
4 changes: 2 additions & 2 deletions net/lapb/lapb_out.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include <linux/interrupt.h>
#include <net/lapb.h>

/*
/*
* This procedure is passed a buffer descriptor for an iframe. It builds
* the rest of the control part of the frame and then writes it out.
*/
Expand Down Expand Up @@ -66,7 +66,7 @@ static void lapb_send_iframe(struct lapb_cb *lapb, struct sk_buff *skb, int poll
lapb->dev, lapb->state, poll_bit, lapb->vs, lapb->vr);
#endif

lapb_transmit_buffer(lapb, skb, LAPB_COMMAND);
lapb_transmit_buffer(lapb, skb, LAPB_COMMAND);
}

void lapb_kick(struct lapb_cb *lapb)
Expand Down
16 changes: 8 additions & 8 deletions net/lapb/lapb_subr.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ 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;
}
}

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
Expand All @@ -91,15 +91,15 @@ 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) {
if (nr == vc)
return 1;
vc = (vc + 1) % modulus;
}

return nr == lapb->vs;
}

Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
*/
Expand Down
2 changes: 1 addition & 1 deletion net/lapb/lapb_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ static void lapb_t1timer_expiry(unsigned long param)
/*
* Awaiting connection state, send SABM(E), up to N2 times.
*/
case LAPB_STATE_1:
case LAPB_STATE_1:
if (lapb->n2count == lapb->n2) {
lapb_clear_queues(lapb);
lapb->state = LAPB_STATE_0;
Expand Down

0 comments on commit 56d6c3d

Please sign in to comment.