gprs_ms_storage: MS always has non NULL ms->bts

An MS object is always attached to a BTS through its lifespan.

Change-Id: Ie9ed9341a82b5edaee09da9156e95a616088f950
This commit is contained in:
Pau Espin 2022-04-01 17:22:37 +02:00
parent b498746a49
commit 1cf38fcbe8
1 changed files with 1 additions and 2 deletions

View File

@ -28,8 +28,7 @@ extern "C" {
static void ms_storage_ms_idle_cb(struct GprsMs *ms) static void ms_storage_ms_idle_cb(struct GprsMs *ms)
{ {
llist_del(&ms->list); llist_del(&ms->list);
if (ms->bts) bts_stat_item_add(ms->bts, STAT_MS_PRESENT, -1);
bts_stat_item_add(ms->bts, STAT_MS_PRESENT, -1);
if (ms_is_idle(ms)) if (ms_is_idle(ms))
talloc_free(ms); talloc_free(ms);
} }