dccp ccid-3: Replace lazy BUG_ON with condition
commit959fd992f05b7468bf30d759ac0c9fd0ef0fa80b
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Sat, 23 Aug 2008 11:28:27 +0000 (23 13:28 +0200)
committerGerrit Renker <gerrit@erg.abdn.ac.uk>
Thu, 4 Sep 2008 05:45:25 +0000 (4 07:45 +0200)
tree936a599345610ce11d5070e17dc6a72f0949285e
parent432649916b0435b608fb3e1fcb97347ac294d38d
dccp ccid-3: Replace lazy BUG_ON with condition

The BUG_ON(w_tot == 0) only holds if there is no more than 1 loss interval in
the loss history. If there is only a single loss interval, the calc_i_mean()
routine need in fact not be called (RFC 3448, 6.3.1).

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
net/dccp/ccids/lib/loss_interval.c