aboutsummaryrefslogtreecommitdiff
path: root/src/rtos/zephyr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rtos/zephyr.c')
-rw-r--r--src/rtos/zephyr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rtos/zephyr.c b/src/rtos/zephyr.c
index b594b2b..ef5ff58 100644
--- a/src/rtos/zephyr.c
+++ b/src/rtos/zephyr.c
@@ -745,14 +745,14 @@ static int zephyr_get_thread_reg_list(struct rtos *rtos, int64_t thread_id,
LOG_INFO("Getting thread %" PRId64 " reg list", thread_id);
- if (rtos == NULL)
+ if (!rtos)
return ERROR_FAIL;
if (thread_id == 0)
return ERROR_FAIL;
params = rtos->rtos_specific_params;
- if (params == NULL)
+ if (!params)
return ERROR_FAIL;
addr = thread_id + params->offsets[OFFSET_T_STACK_POINTER]