pespin has uploaded this change for review.

View Change

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);
}

To view, visit change 27636. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: Ie9ed9341a82b5edaee09da9156e95a616088f950
Gerrit-Change-Number: 27636
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin@sysmocom.de>
Gerrit-MessageType: newchange