diff options
Diffstat (limited to 'src/rtos/embKernel.c')
-rw-r--r-- | src/rtos/embKernel.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rtos/embKernel.c b/src/rtos/embKernel.c index 259399b..1987fd5 100644 --- a/src/rtos/embKernel.c +++ b/src/rtos/embKernel.c @@ -187,13 +187,13 @@ static int embkernel_update_threads(struct rtos *rtos) int retval; const struct embkernel_params *param; - if (rtos == NULL) + if (!rtos) return -1; - if (rtos->rtos_specific_params == NULL) + if (!rtos->rtos_specific_params) return -3; - if (rtos->symbols == NULL) { + if (!rtos->symbols) { LOG_ERROR("No symbols for embKernel"); return -4; } @@ -308,13 +308,13 @@ static int embkernel_get_thread_reg_list(struct rtos *rtos, int64_t thread_id, const struct embkernel_params *param; int64_t stack_ptr = 0; - if (rtos == NULL) + if (!rtos) return -1; if (thread_id == 0) return -2; - if (rtos->rtos_specific_params == NULL) + if (!rtos->rtos_specific_params) return -1; param = (const struct embkernel_params *) rtos->rtos_specific_params; |