zephyr/drivers/counter
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
..
counter_dtmr_cmsdk_apb.c
counter_qmsi_aon.c
counter_qmsi_aonpt.c
counter_tmr_cmsdk_apb.c
dualtimer_cmsdk_apb.h
Kconfig
Kconfig.dtmr_cmsdk_apb
Kconfig.qmsi
Kconfig.tmr_cmsdk_apb
Makefile
timer_cmsdk_apb.h
timer_dtmr_cmsdk_apb.c
timer_tmr_cmsdk_apb.c