Skip to content

Commit

Permalink
tests: cmsis_rtos_v2: Remove unused variables
Browse files Browse the repository at this point in the history
Clean up dead code.

Signed-off-by: Andrei Emeltchenko <[email protected]>
  • Loading branch information
finikorg authored and MaureenHelm committed Jun 30, 2022
1 parent 9ea701e commit 6eb312f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/subsys/portability/cmsis_rtos_v2/src/kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,14 @@ void get_version_check(const void *param)

void lock_unlock_check(const void *arg)
{
ARG_UNUSED(arg);

int32_t state_before_lock, state_after_lock, current_state;
uint32_t tick_freq, sys_timer_freq;

ARG_UNUSED(arg);

state_before_lock = osKernelLock();
if (k_is_in_isr()) {
zassert_true(state_before_lock == osErrorISR, NULL);
}
tick_freq = osKernelGetTickFreq();
sys_timer_freq = osKernelGetTickFreq();

state_after_lock = osKernelUnlock();
if (k_is_in_isr()) {
Expand Down

0 comments on commit 6eb312f

Please sign in to comment.