summaryrefslogtreecommitdiff
path: root/src/ipcpd/unicast/pol/ca-mb-ecn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipcpd/unicast/pol/ca-mb-ecn.c')
-rw-r--r--src/ipcpd/unicast/pol/ca-mb-ecn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipcpd/unicast/pol/ca-mb-ecn.c b/src/ipcpd/unicast/pol/ca-mb-ecn.c
index a2454072..6cf140f5 100644
--- a/src/ipcpd/unicast/pol/ca-mb-ecn.c
+++ b/src/ipcpd/unicast/pol/ca-mb-ecn.c
@@ -135,8 +135,8 @@ ca_wnd_t mb_ecn_ctx_update_snd(void * _ctx,
if (ctx->tx_ece) /* Mult. Decrease */
ctx->tx_wbl -= (ctx->tx_wbl * ctx->tx_ece)
>> (CA_SHFT + 8);
- else if (ctx->tx_wbc > ctx->tx_wbl) /* Add. Increase */
- ctx->tx_wbl = ctx->tx_wbl + ctx->tx_inc;
+ else /* Add. Increase */
+ ctx->tx_wbl = ctx->tx_wbc + ctx->tx_inc;
}
/* Window scaling */