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:
parent
63ccb98eee
commit
d7cc4bd2c5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue