pespin has submitted this change. (
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(-)
Approvals:
Jenkins Builder: Verified
osmith: Looks good to me, approved
pespin: Looks good to me, but someone else must approve
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;
--
To view, visit
https://gerrit.osmocom.org/c/osmo-pcu/+/31090
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I7aceaf2d13a125c75925877c4344c0aeed326c79
Gerrit-Change-Number: 31090
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged