ms: Remove unneeded bts!=NULL check

The ms_alloc function is expected to always have a proper bts object
passed, since an ms is always attached at a BTS.

Change-Id: I10b3c94dcb2fed4bff40b1ab7ea455175cf77ce4
Pau Espin 2022-04-01 17:21:08 +02:00
parent de4dc29c12
commit b498746a49
1 changed files with 2 additions and 2 deletions

View File

@ -90,6 +90,7 @@ static int ms_talloc_destructor(struct GprsMs *ms);
struct GprsMs *ms_alloc(struct gprs_rlcmac_bts *bts, uint32_t tlli)
struct GprsMs *ms = talloc_zero(tall_pcu_ctx, struct GprsMs);
talloc_set_destructor(ms, ms_talloc_destructor);
@ -116,8 +117,7 @@ struct GprsMs *ms_alloc(struct gprs_rlcmac_bts *bts, uint32_t tlli)
ms_set_mode(ms, GPRS);
if (ms->bts)
codel_interval = the_pcu->vty.llc_codel_interval_msec;
codel_interval = the_pcu->vty.llc_codel_interval_msec;
if (codel_interval != LLC_CODEL_DISABLE) {
if (codel_interval == LLC_CODEL_USE_DEFAULT)