From de4dc29c12821660cf883d07298c2d4550871a5c Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Fri, 1 Apr 2022 17:18:02 +0200 Subject: [PATCH] ms: validate codel enabled against proper define This is a cosmetic change, since LLC_CODEL_DISABLE is defined as 0. It clarifies though the meaning of the if condition. Change-Id: I7c4bda5977a94c2aaf01ca368570f80fd6ebae00 --- src/gprs_ms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gprs_ms.c b/src/gprs_ms.c index c10eda7e..3167deef 100644 --- a/src/gprs_ms.c +++ b/src/gprs_ms.c @@ -119,7 +119,7 @@ struct GprsMs *ms_alloc(struct gprs_rlcmac_bts *bts, uint32_t tlli) if (ms->bts) codel_interval = the_pcu->vty.llc_codel_interval_msec; - if (codel_interval) { + if (codel_interval != LLC_CODEL_DISABLE) { if (codel_interval == LLC_CODEL_USE_DEFAULT) codel_interval = GPRS_CODEL_SLOW_INTERVAL_MS; ms->codel_state = talloc(ms, struct gprs_codel);