kernel: Explicitly comparing pointer with NULL
MISRA-C rule: 14.4 Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
92ea2f9189
commit
ea716bf023
11 changed files with 17 additions and 16 deletions
|
@ -240,7 +240,7 @@ static inline void _ready_one_thread(_wait_q_t *wq)
|
|||
{
|
||||
struct k_thread *th = _unpend_first_thread(wq);
|
||||
|
||||
if (th) {
|
||||
if (th != NULL) {
|
||||
_ready_thread(th);
|
||||
}
|
||||
}
|
||||
|
@ -285,7 +285,7 @@ static inline struct k_thread *_unpend1_no_timeout(_wait_q_t *wait_q)
|
|||
{
|
||||
struct k_thread *thread = _find_first_thread_to_unpend(wait_q, NULL);
|
||||
|
||||
if (thread) {
|
||||
if (thread != NULL) {
|
||||
_unpend_thread_no_timeout(thread);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue