Skip to content
Commit 132fa83e authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Fabio Baltieri
Browse files

arch: riscv: make arch_current_thread_set() safer



Use the "do { } while (0)" construct so the macro behaves like an actual
C statement in all cases. Also evaluate the macro argument only once.

Signed-off-by: default avatarNicolas Pitre <npitre@baylibre.com>
parent 55602a5b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment