From: Ilpo Järvinen Date: Fri, 23 Nov 2007 11:10:56 +0000 (+0800) Subject: [TCP] MTUprobe: Cleanup send queue check (no need to loop) X-Git-Tag: v2.6.24-rc4~90^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f9c33e515353ea91afc62341161fead19e78567;p=pandora-kernel.git [TCP] MTUprobe: Cleanup send queue check (no need to loop) The original code has striking complexity to perform a query which can be reduced to a very simple compare. FIN seqno may be included to write_seq but it should not make any significant difference here compared to skb->len which was used previously. One won't end up there with SYN still queued. Use of write_seq check guarantees that there's a valid skb in send_head so I removed the extra check. Signed-off-by: Ilpo Järvinen Acked-by: John Heffner Signed-off-by: Herbert Xu --- Reading git-diff-tree failed