mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/avr8_common: Drop useless ret instruction
The thread_yield_higher is a normal functions. However it has a non regular return instruction which is useless. This remove the useless return on thread_yield_higher to save flash bytes. Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
parent
93aa10cc5c
commit
ceb414f046
@ -264,7 +264,6 @@ void thread_yield_higher(void)
|
||||
avr8_context_save();
|
||||
sched_run();
|
||||
avr8_context_restore();
|
||||
__asm__ volatile ("ret");
|
||||
}
|
||||
else {
|
||||
sched_context_switch_request = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user