zephyr/tests/kernel/obj_tracing/src
Leandro Pereira 732424f065 drivers, net: Clean up semaphore initialization
Change the common "init with 0" + "give" idiom to "init with 1".  This
won't change the behavior or performance, but should decrease the size
ever so slightly.

This change has been performed mechanically with the following
Coccinelle script:

    @@
    expression SEM;
    expression LIMIT;
    expression TIMEOUT;
    @@

    - k_sem_init(SEM, 0, LIMIT);
    - k_sem_give(SEM);
    + k_sem_init(SEM, 1, LIMIT);

Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
2017-07-27 15:23:07 -04:00
..
main.c drivers, net: Clean up semaphore initialization 2017-07-27 15:23:07 -04:00
Makefile tests: kernel: import obj_tracing test to unified kernel 2017-02-15 01:08:34 +00:00
object_monitor.c tests: obj_tracing: fix code style 2017-06-19 09:01:14 -04:00
phil.h tests: obj_tracing: fix code style 2017-06-19 09:01:14 -04:00
philosopher.c tests: obj_tracing: fix code style 2017-06-19 09:01:14 -04:00