gprs_ms: Use osmo_timer_setup() API

Change-Id: I261f4dcee15942bdce82c6b8a8a558a38bedd6fe
This commit is contained in:
Pau Espin 2022-05-09 16:07:52 +02:00
parent 0bdad9f388
commit c7802d9fc1
1 changed files with 1 additions and 2 deletions

View File

@ -111,8 +111,7 @@ struct GprsMs *ms_alloc(struct gprs_rlcmac_bts *bts, uint32_t tlli)
LOGP(DRLCMAC, LOGL_INFO, "Creating MS object, TLLI = 0x%08x\n", tlli);
ms->imsi[0] = '\0';
memset(&ms->timer, 0, sizeof(ms->timer));
ms->timer.cb = ms_release_timer_cb;
osmo_timer_setup(&ms->timer, ms_release_timer_cb, NULL);
llc_queue_init(&ms->llc_queue, ms);
ms_set_mode(ms, GPRS);