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
This commit is contained in:
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);
OSMO_ASSERT(bts);
talloc_set_destructor(ms, ms_talloc_destructor);
@ -116,7 +117,6 @@ 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;
if (codel_interval != LLC_CODEL_DISABLE) {