dccp ccid-3: Replace lazy BUG_ON with condition
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Sat, 23 Aug 2008 11:28:27 +0000 (13:28 +0200)
committerGerrit Renker <gerrit@erg.abdn.ac.uk>
Wed, 27 Aug 2008 05:22:00 +0000 (07:22 +0200)
commiteff253c4272cd2aac95ccff46d3d2e1a495f22b1
treed33ffe2bf87b27046bd032ae49d04f012558ae75
parent157439fa4a9b38ac4ce41e2fc379fc5031affec8
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