Page MenuHomeFreeBSD

TCP RACK: remove code that cannot be reached
ClosedPublic

Authored by tuexen on Fri, Jan 3, 1:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 4, 2:25 PM
Unknown Object (File)
Fri, Jan 3, 10:42 PM

Details

Summary

No functional change intended.

CID: 1523797

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tuexen requested review of this revision.Fri, Jan 3, 1:53 PM

Are you sure this condition cannot be reached?

I would suspect you can have available data and the pace_tmr_rxt can be up ...

In D48301#1101717, @rrs wrote:

Are you sure this condition cannot be reached?

I would suspect you can have available data and the pace_tmr_rxt can be up ...

The code I am removing would only call return, if rsm == NULL and tmr_up == PACE_TMR_RXT. This condition can not be true, since the condition before if (rsm == NULL) reads:

	if (((rsm == NULL) || (tp->t_state < TCPS_ESTABLISHED)) &&
	    (tmr_up == PACE_TMR_RXT)) {
		/* Should be an RXT */
		return;
	}

which means we would return from that condition and never reach the code I am removing.

This revision is now accepted and ready to land.Sat, Jan 4, 1:09 PM
This revision was automatically updated to reflect the committed changes.