pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-pcu/+/27636 )
Change subject: gprs_ms_storage: MS always has non NULL ms->bts ......................................................................
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 --- M src/gprs_ms_storage.cpp 1 file changed, 1 insertion(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/36/27636/1
diff --git a/src/gprs_ms_storage.cpp b/src/gprs_ms_storage.cpp index aa0fc9e..b98104d 100644 --- a/src/gprs_ms_storage.cpp +++ b/src/gprs_ms_storage.cpp @@ -28,8 +28,7 @@ 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); }