X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Frtos%2Fzephyr.c;h=ef5ff5879158ff40a775316383b1841f6bfb4a1f;hb=08ee7bb982b16742f52cfdc6c649d82ffa2eb177;hp=b594b2b531366f3f487d3a2f1e037e8745c3caec;hpb=b159f5cdedd70fff9309722e927be670845f4df5;p=openocd.git diff --git a/src/rtos/zephyr.c b/src/rtos/zephyr.c index b594b2b531..ef5ff58791 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]