[TCP] Avoid two divides in tcp_output.c
authorEric Dumazet <dada1@cosmosbay.com>
Fri, 21 Dec 2007 05:48:32 +0000 (21:48 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:59:41 +0000 (14:59 -0800)
commitb92edbe0b8a36a833c16b0cbafb6e899b81ffc08
tree0d5376e9835ebfa06eb9d7f78569c1f1aeb7a301
parent68277accb3a5f004344f4346498640601b8b7016
[TCP] Avoid two divides in tcp_output.c

Because 'free_space' variable in __tcp_select_window() is signed,
expression (free_space / 2) forces compiler to emit an integer divide.

This can be changed to a plain right shift, less expensive.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c