projects
/
GitHub
/
moto-9609
/
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:
8dff7c2
)
[TCP]: Fix unlikely usage in tcp_transmit_skb()
author
Hua Zhong
<hzhong@gmail.com>
Fri, 28 Apr 2006 22:26:50 +0000
(15:26 -0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Sun, 30 Apr 2006 01:33:19 +0000
(18:33 -0700)
The following unlikely should be replaced by likely because the
condition happens every time unless there is a hard error to transmit
a packet.
Signed-off-by: Hua Zhong <hzhong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/tcp_output.c
b/net/ipv4/tcp_output.c
index a28ae593b97613d4d09a692e2363f24e2b59417b..743016baa04867473a022008367aa05a61bac284 100644
(file)
--- a/
net/ipv4/tcp_output.c
+++ b/
net/ipv4/tcp_output.c
@@
-465,7
+465,7
@@
static int tcp_transmit_skb(struct sock *sk, struct sk_buff *skb, int clone_it,
TCP_INC_STATS(TCP_MIB_OUTSEGS);
err = icsk->icsk_af_ops->queue_xmit(skb, 0);
- if (
un
likely(err <= 0))
+ if (likely(err <= 0))
return err;
tcp_enter_cwr(sk);