zephyr/drivers/watchdog
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
..
Kconfig watchdog: Add WDT driver for Atmel SAM SoCs 2017-03-09 13:43:17 +00:00
Kconfig.cmsdk_apb license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
Kconfig.qmsi license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
Kconfig.sam watchdog: atmel_sam: enable build for all SAM family 2017-05-28 09:18:54 -05:00
Kconfig.stm32 license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
Makefile watchdog: Add WDT driver for Atmel SAM SoCs 2017-03-09 13:43:17 +00:00
iwdg_stm32.c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
iwdg_stm32.h drivers: convert to using newly introduced integer sized types 2017-04-21 10:06:48 -05:00
wdog_cmsdk_apb.c drivers: convert to using newly introduced integer sized types 2017-04-21 10:06:48 -05:00
wdt_qmsi.c drivers, net: Clean up semaphore initialization 2017-07-27 15:23:07 -04:00
wdt_sam.c watchdog: Add WDT driver for Atmel SAM SoCs 2017-03-09 13:43:17 +00:00