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:
parent
ee1cb75127
commit
de4dc29c12
|
@ -119,7 +119,7 @@ struct GprsMs *ms_alloc(struct gprs_rlcmac_bts *bts, uint32_t tlli)
|
||||||
if (ms->bts)
|
if (ms->bts)
|
||||||
codel_interval = the_pcu->vty.llc_codel_interval_msec;
|
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)
|
if (codel_interval == LLC_CODEL_USE_DEFAULT)
|
||||||
codel_interval = GPRS_CODEL_SLOW_INTERVAL_MS;
|
codel_interval = GPRS_CODEL_SLOW_INTERVAL_MS;
|
||||||
ms->codel_state = talloc(ms, struct gprs_codel);
|
ms->codel_state = talloc(ms, struct gprs_codel);
|
||||||
|
|
Loading…
Reference in New Issue