aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-10-17 14:45:42 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-10-17 15:07:33 +0700
commitcf2226093ffdc9cdac571017b32c8c1257763fb4 (patch)
treec47889198555669c8d8b7ec1d664a4afa42fd2e5
parent52aa451ae28b43e361d4b6c04a21109dde471be9 (diff)
scheduler: _sched_dequeue_prim(): make 'l1sap' a scoped pointer
-rw-r--r--src/common/scheduler.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/scheduler.c b/src/common/scheduler.c
index f0b8c312..7e40e97e 100644
--- a/src/common/scheduler.c
+++ b/src/common/scheduler.c
@@ -643,14 +643,13 @@ struct msgb *_sched_dequeue_prim(struct l1sched_trx *l1t, int8_t tn, uint32_t fn
enum trx_chan_type chan)
{
struct msgb *msg, *msg2;
- struct osmo_phsap_prim *l1sap;
uint32_t prim_fn, l1sap_fn;
uint8_t chan_nr, link_id;
struct l1sched_ts *l1ts = l1sched_trx_get_ts(l1t, tn);
/* get prim of current fn from queue */
llist_for_each_entry_safe(msg, msg2, &l1ts->dl_prims, list) {
- l1sap = msgb_l1sap_prim(msg);
+ struct osmo_phsap_prim *l1sap = msgb_l1sap_prim(msg);
switch (l1sap->oph.primitive) {
case PRIM_PH_DATA:
chan_nr = l1sap->u.data.chan_nr;