Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
d258b491
Commit
d258b491
authored
Sep 23, 2008
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tcp: Use skb_queue_is_last() instead of by-hand version.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
fc7ebb21
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/net/tcp.h
include/net/tcp.h
+3
-3
No files found.
include/net/tcp.h
View file @
d258b491
...
@@ -1284,10 +1284,10 @@ static inline void tcp_unlink_write_queue(struct sk_buff *skb, struct sock *sk)
...
@@ -1284,10 +1284,10 @@ static inline void tcp_unlink_write_queue(struct sk_buff *skb, struct sock *sk)
__skb_unlink
(
skb
,
&
sk
->
sk_write_queue
);
__skb_unlink
(
skb
,
&
sk
->
sk_write_queue
);
}
}
static
inline
int
tcp_skb_is_last
(
const
struct
sock
*
sk
,
static
inline
bool
tcp_skb_is_last
(
const
struct
sock
*
sk
,
const
struct
sk_buff
*
skb
)
const
struct
sk_buff
*
skb
)
{
{
return
skb
->
next
==
(
struct
sk_buff
*
)
&
sk
->
sk_write_queue
;
return
skb
_queue_is_last
(
&
sk
->
sk_write_queue
,
skb
)
;
}
}
static
inline
int
tcp_write_queue_empty
(
struct
sock
*
sk
)
static
inline
int
tcp_write_queue_empty
(
struct
sock
*
sk
)
...
...
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