X25: Move interrupt flag to bitfield
Moves the x25 interrupt flag from char into bitfield. Signed-off-by: Andrew Hendry <andrew.hendry@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
cb863ffd4a
commit
b7792e34cb
@@ -148,8 +148,9 @@ void x25_kick(struct sock *sk)
|
||||
/*
|
||||
* Transmit interrupt data.
|
||||
*/
|
||||
if (!x25->intflag && skb_peek(&x25->interrupt_out_queue) != NULL) {
|
||||
x25->intflag = 1;
|
||||
if (skb_peek(&x25->interrupt_out_queue) != NULL &&
|
||||
!test_and_set_bit(X25_INTERRUPT_FLAG, &x25->flags)) {
|
||||
|
||||
skb = skb_dequeue(&x25->interrupt_out_queue);
|
||||
x25_transmit_link(skb, x25->neighbour);
|
||||
}
|
||||
|
Reference in New Issue
Block a user