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
changes/36/27636/1
Pau Espin 8 months ago
parent b498746a49
commit 1cf38fcbe8
  1. 3
      src/gprs_ms_storage.cpp

@ -28,8 +28,7 @@ extern "C" {
static void ms_storage_ms_idle_cb(struct GprsMs *ms)
{
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))
talloc_free(ms);
}

Loading…
Cancel
Save