pespin submitted this change.
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(-)
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 change 31090. To unsubscribe, or for help writing mail filters, visit settings.