]> git.baikalelectronics.ru Git - kernel.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)
commit5865f46b43d13a17ba4564d4c7ffabddd82778a8
tree139687b3ec6b86b1938e7d55571880b9a88bf936
parentc69d5b892de12721d86ca75a587382d8a8a326a0
[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