From d7cc4bd2c574693a6e1cce59abfebe212abe8e88 Mon Sep 17 00:00:00 2001 From: Vinayak Kariappa Chettimada Date: Mon, 23 Mar 2020 12:37:55 +0530 Subject: [PATCH] Bluetooth: controller: ticker minor code optimization Minor optimization to use a local variable instead of a deferencing of a struct member. Signed-off-by: Vinayak Kariappa Chettimada --- subsys/bluetooth/controller/ticker/ticker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/controller/ticker/ticker.c b/subsys/bluetooth/controller/ticker/ticker.c index 32ca03607d2..ef68fa77789 100644 --- a/subsys/bluetooth/controller/ticker/ticker.c +++ b/subsys/bluetooth/controller/ticker/ticker.c @@ -417,7 +417,7 @@ static u8_t ticker_enqueue(struct ticker_instance *instance, u8_t id) */ if (ticks_to_expire == 0 && (ticker_new->lazy_current > ticker_current->lazy_current)) { - ticks_to_expire = ticker_current->ticks_to_expire; + ticks_to_expire = ticks_to_expire_current; break; }