]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[DCCP] ccid3: Simplify control flow in the calculation of t_ipi
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Mon, 27 Nov 2006 14:22:48 +0000 (12:22 -0200)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 3 Dec 2006 05:30:36 +0000 (21:30 -0800)
commitf5c2d6367b04fd5ba98a5f9846b5fb870423968a
tree139687b3ec6b86b1938e7d55571880b9a88bf936
parent90feeb951f61a80d3a8f8e5ced25b9ec78867eaf
[DCCP] ccid3: Simplify control flow in the calculation of t_ipi

This patch performs a simplifying (performance) optimisation:

 In each call of the inline function ccid3_calc_new_t_ipi(), the state is
 tested against TFRC_SSTATE_NO_FBACK. This is expensive when the function
 is called very often. A simpler solution, implemented by this patch, is
 to adapt the control flow.

Background:
net/dccp/ccids/ccid3.c