zephyr/drivers/ethernet
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
..
eth_dw_priv.h
eth_dw.c
eth_enc28j60_priv.h
eth_enc28j60.c
eth_mcux.c
eth_sam_gmac_priv.h
eth_sam_gmac.c
eth_stm32_hal_priv.h
eth_stm32_hal.c
Kconfig
Kconfig.dw
Kconfig.enc28j60
Kconfig.mcux
Kconfig.sam_gmac
Kconfig.stm32_hal
Makefile
phy_sam_gmac.c
phy_sam_gmac.h