aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-02-19 23:43:20 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2019-02-19 23:43:23 +0100
commitf3fa1d384d549d0013a4fea8ad2b2b5c86414e30 (patch)
treec604e08a657dc67ec8abdc2742023b1601947f4f
parent45b9021eb83d513fa7cf59b47b591e9a22d80d83 (diff)
oc2g: led_sleep_cb: pass correct ptr to llist_move_tail
Fix compilation warning. At runtime it's not a big issue because the "list" field is the first field of the led_list (struct lc15bts_led_timer_list) variable. Hence, the address passed is the same. Similar to commit fixing same issue in lc15 in 080302f8. Change-Id: Ie393a21bc3a725520343c70941cb4f591b313420
-rw-r--r--src/osmo-bts-oc2g/misc/oc2gbts_led.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bts-oc2g/misc/oc2gbts_led.c b/src/osmo-bts-oc2g/misc/oc2gbts_led.c
index b8758b8..40d4b72 100644
--- a/src/osmo-bts-oc2g/misc/oc2gbts_led.c
+++ b/src/osmo-bts-oc2g/misc/oc2gbts_led.c
@@ -150,7 +150,7 @@ static void led_sleep_cb(void *_data) {
/* Delete current timer */
osmo_timer_del(&led_list->led_timer.timer);
/* Rotate the timer list */
- llist_move_tail(led_list, &mgr->oc2gbts_leds.list);
+ llist_move_tail(&led_list->list, &mgr->oc2gbts_leds.list);
break;
}
}