28fc46ee09
We were testing the value of a volatile variable inside a zassert, which static analysis doesn't like. In principle, it might be volatile because it's an MMIO register or something and the read is a side effect, and an assertion will be optionally compiled. (Except here the value is just regular memory marked volatile for threadsafety, and zassert will never be elided in a test, but the tool doesn't know that). Refactor a little so we always read the variable in a way the tool can detect is consistent. Fixes #18446 Signed-off-by: Andy Ross <andrew.j.ross@intel.com> |
||
---|---|---|
.. | ||
deadline | ||
preempt | ||
schedule_api |