pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-pcu/+/31090 )
Change subject: llc: remove unused reference to msgb address ......................................................................
llc: remove unused reference to msgb address
This is probably a leftover from an old refactoring where the tv was moved to MetaInfo (msg->cb[].
Change-Id: I7aceaf2d13a125c75925877c4344c0aeed326c79 --- M src/llc.c 1 file changed, 1 insertion(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/90/31090/1
diff --git a/src/llc.c b/src/llc.c index 7d39d61..7745bd0 100644 --- a/src/llc.c +++ b/src/llc.c @@ -236,7 +236,7 @@ static struct msgb *llc_queue_pick_msg(struct gprs_llc_queue *q, enum gprs_llc_queue_prio *prio) { struct msgb *msg; - struct timespec *tv, tv_now, tv_result; + struct timespec tv_now, tv_result; uint32_t lifetime; unsigned int i; const struct MetaInfo *meta_storage; @@ -257,7 +257,6 @@
/* take the second time */ osmo_clock_gettime(CLOCK_MONOTONIC, &tv_now); - tv = (struct timespec *)&msg->data[sizeof(*tv)]; timespecsub(&tv_now, &meta_storage->recv_time, &tv_result);
lifetime = tv_result.tv_sec*1000 + tv_result.tv_nsec/1000000;