aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2007-11-29 05:22:33 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:55:08 -0500
commitdf97c708d5e6eebdd9ded1fa588eae09acf53793 (patch)
tree35bcca504e629f3b9635fd52870a8add0846f333 /net/ipv4/tcp_output.c
parentf561d0f27d6283c49359bb96048f8ac3728c812c (diff)
[NET]: Eliminate unused argument from sk_stream_alloc_pskb
The 3rd argument is always zero (according to grep :) Eliminate it and merge the function with sk_stream_alloc_skb. This saves 44 more bytes, and together with the previous patch we have: add/remove: 1/0 grow/shrink: 0/8 up/down: 183/-751 (-568) function old new delta sk_stream_alloc_skb - 183 +183 ip_rt_init 529 525 -4 arp_ignore 112 107 -5 __inet_lookup_listener 284 274 -10 tcp_sendmsg 2583 2481 -102 tcp_sendpage 1449 1300 -149 tso_fragment 417 258 -159 tcp_fragment 1149 988 -161 __tcp_push_pending_frames 1998 1837 -161 Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r--net/ipv4/tcp_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c
index 546f385a405..98835afb8d8 100644
--- a/net/ipv4/tcp_output.c
+++ b/net/ipv4/tcp_output.c
@@ -1180,7 +1180,7 @@ static int tso_fragment(struct sock *sk, struct sk_buff *skb, unsigned int len,
1180 if (skb->len != skb->data_len) 1180 if (skb->len != skb->data_len)
1181 return tcp_fragment(sk, skb, len, mss_now); 1181 return tcp_fragment(sk, skb, len, mss_now);
1182 1182
1183 buff = sk_stream_alloc_pskb(sk, 0, 0, GFP_ATOMIC); 1183 buff = sk_stream_alloc_skb(sk, 0, GFP_ATOMIC);
1184 if (unlikely(buff == NULL)) 1184 if (unlikely(buff == NULL))
1185 return -ENOMEM; 1185 return -ENOMEM;
1186 1186