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 <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2020-03-23 12:37:55 +05:30 committed by Carles Cufí
commit d7cc4bd2c5

View file

@ -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;
}