From 1cf38fcbe868eb52f467358a786e23da4cbdf188 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Fri, 1 Apr 2022 17:22:37 +0200 Subject: [PATCH] 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 --- src/gprs_ms_storage.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gprs_ms_storage.cpp b/src/gprs_ms_storage.cpp index aa0fc9e7..b98104d4 100644 --- a/src/gprs_ms_storage.cpp +++ b/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); }