openocd: remove NULL comparisons with checkpatch [1/2]
[fw/openocd] / src / rtos / linux.c
index b9749b5612abb3dc44c68a06e3d4f6d126233e12..11a55c43466493d9d4b1d6fd52f7b52f3886d357 100644 (file)
@@ -639,7 +639,7 @@ static struct threads *liste_add_task(struct threads *task_list, struct threads
 {
        t->next = NULL;
 
-       if (*last == NULL)
+       if (!*last)
                if (!task_list) {
                        task_list = t;
                        return task_list;