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:
parent
de4dc29c12
commit
b498746a49
|
@ -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_alloc(struct gprs_rlcmac_bts *bts, uint32_t tlli)
|
||||||
{
|
{
|
||||||
struct GprsMs *ms = talloc_zero(tall_pcu_ctx, struct GprsMs);
|
struct GprsMs *ms = talloc_zero(tall_pcu_ctx, struct GprsMs);
|
||||||
|
OSMO_ASSERT(bts);
|
||||||
|
|
||||||
talloc_set_destructor(ms, ms_talloc_destructor);
|
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);
|
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_DISABLE) {
|
||||||
|
|
Loading…
Reference in New Issue