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
This commit is contained in:
Pau Espin 2022-04-01 17:18:02 +02:00
parent ee1cb75127
commit de4dc29c12
1 changed files with 1 additions and 1 deletions

View File

@ -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)
ms->codel_state = talloc(ms, struct gprs_codel);