Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
528be7ff
Commit
528be7ff
authored
May 28, 2009
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
irda: Use SKB queue and list helpers instead of doing it by-hand.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
91521944
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
16 deletions
+2
-16
net/irda/irlap_frame.c
net/irda/irlap_frame.c
+2
-16
No files found.
net/irda/irlap_frame.c
View file @
528be7ff
...
@@ -982,17 +982,12 @@ void irlap_resend_rejected_frames(struct irlap_cb *self, int command)
...
@@ -982,17 +982,12 @@ void irlap_resend_rejected_frames(struct irlap_cb *self, int command)
{
{
struct
sk_buff
*
tx_skb
;
struct
sk_buff
*
tx_skb
;
struct
sk_buff
*
skb
;
struct
sk_buff
*
skb
;
int
count
;
IRDA_ASSERT
(
self
!=
NULL
,
return
;);
IRDA_ASSERT
(
self
!=
NULL
,
return
;);
IRDA_ASSERT
(
self
->
magic
==
LAP_MAGIC
,
return
;);
IRDA_ASSERT
(
self
->
magic
==
LAP_MAGIC
,
return
;);
/* Initialize variables */
count
=
skb_queue_len
(
&
self
->
wx_list
);
/* Resend unacknowledged frame(s) */
/* Resend unacknowledged frame(s) */
skb
=
skb_peek
(
&
self
->
wx_list
);
skb_queue_walk
(
&
self
->
wx_list
,
skb
)
{
while
(
skb
!=
NULL
)
{
irlap_wait_min_turn_around
(
self
,
&
self
->
qos_tx
);
irlap_wait_min_turn_around
(
self
,
&
self
->
qos_tx
);
/* We copy the skb to be retransmitted since we will have to
/* We copy the skb to be retransmitted since we will have to
...
@@ -1011,21 +1006,12 @@ void irlap_resend_rejected_frames(struct irlap_cb *self, int command)
...
@@ -1011,21 +1006,12 @@ void irlap_resend_rejected_frames(struct irlap_cb *self, int command)
/*
/*
* Set poll bit on the last frame retransmitted
* Set poll bit on the last frame retransmitted
*/
*/
if
(
count
--
==
1
)
if
(
skb_queue_is_last
(
&
self
->
wx_list
,
skb
)
)
tx_skb
->
data
[
1
]
|=
PF_BIT
;
/* Set p/f bit */
tx_skb
->
data
[
1
]
|=
PF_BIT
;
/* Set p/f bit */
else
else
tx_skb
->
data
[
1
]
&=
~
PF_BIT
;
/* Clear p/f bit */
tx_skb
->
data
[
1
]
&=
~
PF_BIT
;
/* Clear p/f bit */
irlap_send_i_frame
(
self
,
tx_skb
,
command
);
irlap_send_i_frame
(
self
,
tx_skb
,
command
);
/*
* If our skb is the last buffer in the list, then
* we are finished, if not, move to the next sk-buffer
*/
if
(
skb
==
skb_peek_tail
(
&
self
->
wx_list
))
skb
=
NULL
;
else
skb
=
skb
->
next
;
}
}
#if 0 /* Not yet */
#if 0 /* Not yet */
/*
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment