projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc7ebb2
)
tcp: Use skb_queue_is_last() instead of by-hand version.
author
David S. Miller
<davem@davemloft.net>
Tue, 23 Sep 2008 07:34:37 +0000
(
00:34
-0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 23 Sep 2008 07:34:37 +0000
(
00:34
-0700)
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
patch
|
blob
|
blame
|
history
diff --git
a/include/net/tcp.h
b/include/net/tcp.h
index f857c3eff710c9d9a32349a53d26eefccb62b31b..5c5327e9a55704053dca4408d7152a1a8674e6ee 100644
(file)
--- a/
include/net/tcp.h
+++ b/
include/net/tcp.h
@@
-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);
}
-static inline
int
tcp_skb_is_last(const struct sock *sk,
- const struct sk_buff *skb)
+static inline
bool
tcp_skb_is_last(const struct sock *sk,
+
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)